I wonder if cookies are the same as session cookies?
No. There are different types of cookies.
- Session cookies usually used for tracking sessions. They are deleted by a browser when you close it.
- Persistent cookies saved on your hard drive. Persistent cookies expire (deleted by browser) when expiry date is reached.
- First party cookies are set/retrieved by a website which you actually visit.
- Third party cookies are set/retrieved by a different domain. Usually used for advertising and info sharing between websites.
There are also HTTP Only, Secure, and zombie cookies.