difference between cookies and sessions

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
username0
Forum Newbie
Posts: 4
Joined: Sat Feb 11, 2012 4:58 pm

difference between cookies and sessions

Post by username0 »

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)
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: difference between cookies and sessions

Post by Christopher »

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.
(#10850)
Post Reply