fkheng Posted September 19, 2003 Posted September 19, 2003 What is the difference between a cookie and a session as both can store values? Quote Can you bind the beautiful Pleiades, and can you loose the cords of Orion? - God to Job...
bungpeng Posted September 19, 2003 Posted September 19, 2003 The main difference is Cookies store value in client site and Session store in Server site Quote
Andi03 Posted September 19, 2003 Posted September 19, 2003 On the cookie you can set a date when it should expire. But the session only excists if you stay on the site or by default 20 min (you can change it) If you jus want to remember stuff when the user is online on your page you can use sessions. But if you want to remember lets say if the user have voted in your poll and you don't want him to wote again on this one. U can save teh info in cookies and set te date when it should expire. //Andi Quote
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.