Jump to content

Archived

This topic is now archived and is closed to further replies.

mistakes!

sessions and cookies

Recommended Posts

hello can anyone please tell me the difference between cookies and sessions? as i am struggling on which one to use

cheers.

Share this post


Link to post
Share on other sites
the simple watered down version:

a session is a method of carrying variables over from 1 page to the next. all the information in the session variables are stored on the server where the script is. a session id is linked to all these variables, and the webbrowser sends the session id to the server when requesting access to a page that accesses those variables.

a cookie is basically a variable with an expiration date that's stored on the user's computer.

Share this post


Link to post
Share on other sites
[!--quoteo(post=372481:date=May 8 2006, 09:21 PM:name=Crayon Violent)--][div class=\'quotetop\']QUOTE(Crayon Violent @ May 8 2006, 09:21 PM) [snapback]372481[/snapback][/div][div class=\'quotemain\'][!--quotec--]
the simple watered down version:

a session is a method of carrying variables over from 1 page to the next. all the information in the session variables are stored on the server where the script is. a session id is linked to all these variables, and the webbrowser sends the session id to the server when requesting access to a page that accesses those variables.

a cookie is basically a variable with an expiration date that's stored on the user's computer.
[/quote]

thanks alot or that!
much appreciated!

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.