Cookies make web sessions safer and more efficient.
The exchange of tokens means that no sensitive information, like usernames and passwords, are shared.
Session cookies prevent attackers from obtaining sensitive data.
However, there's other damage that they can do.
With a stolen cookie, an attacker can impersonate a user using their session token.
This kind of attack is known as session hijacking.