Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
What is the difference between a cookie and a session as both can store values?
Can you bind the beautiful Pleiades, and can you loose the cords of Orion? - God to Job...
Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...