mistakes! Posted May 9, 2006 Share Posted May 9, 2006 hello can anyone please tell me the difference between cookies and sessions? as i am struggling on which one to use cheers. Quote Link to comment https://forums.phpfreaks.com/topic/9352-sessions-and-cookies/ Share on other sites More sharing options...
.josh Posted May 9, 2006 Share Posted May 9, 2006 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 Link to comment https://forums.phpfreaks.com/topic/9352-sessions-and-cookies/#findComment-34490 Share on other sites More sharing options...
mistakes! Posted May 9, 2006 Author Share Posted May 9, 2006 [!--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! Quote Link to comment https://forums.phpfreaks.com/topic/9352-sessions-and-cookies/#findComment-34517 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.