I can use sessions to remember the username and password. When do I need cookies?
(sorry if this is not the right area to ask, because this is not a code)
difference between cookies and sessions
Moderator: General Moderators
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: difference between cookies and sessions
Cookie data stored in the browser and transmitted each request to the server. Session data is stored on the server and uses information sent by the browser to identify unique users. To confuse you more, sometime that identifying information is cookie.
Either can be used to store whether a user has been authenticated. However, cookie data can be create by the user.
Either can be used to store whether a user has been authenticated. However, cookie data can be create by the user.
(#10850)