Web security: cookies

Tenth post in the web security series.

Cookies are used for different purposes but the most important one is for session tracking, since this functionality was not designed in the HTTP protocol.

There are several options for cookies that should be considered, especially for session cookies:

So a session tracking cookie for session with ID ABC1337 on domain example.com should be set with something like that:

Set-Cookie: SESSIONID=ABC1337; Domain=.example.com; Secure; HttpOnly

Comments Add one by emailing me.