Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re: What is Difference between Session and Cookie

by ikegami (Pope)
on Mar 28, 2007 at 12:45 UTC ( #607000=note: print w/replies, xml ) Need Help??

in reply to What is Difference between Session and Cookie

A session is a store of data on the server containing state information on a user. A particular sessions is identified by its session id, ideally a large (i.e. unguessable) random number. For example, the session could hold a user's shopping cart.

A cookie is also a store. To create a cookie, the server sends a HTTP header to the client (i.e. the web browser). If the client supports and accepts the cookie, the cookie will be sent back to the server along with every request made to the server.

Cookies are often used to store a session id, binding the session to the user.

  • Comment on Re: What is Difference between Session and Cookie

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://607000]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2021-09-18 14:59 GMT
Find Nodes?
    Voting Booth?

    No recent polls found