Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: What is Difference between Session and Cookie

by Ojosh!ro (Beadle)
on Mar 28, 2007 at 13:03 UTC ( #607011=note: print w/replies, xml ) Need Help??


in reply to What is Difference between Session and Cookie

Sessions and cookies

No doubt you found the term ,,cookie'' appear frequently when ,,sessions'' are being discussed.
A cookie is a bit of information which is sent to your browser and stored there. The browser will send this information back to the server every time you send a request. (to the server that set the cookie)
This behaviour can be used to identify a session if sessions take more than one (server-(client)-server) transactions.
Hmmm, analogy?
Imagine the webapplication as a fairground (carnival?). You pay for a ticket when you enter (start a session). The ticket now is your cookie and every ride (transaction) you want to go on you wave your ticket (cookie) and get on it. Without a cookie you would have to buy a ticket for every single ride.

if( exists $aeons{strange} ){ die $death unless ( $death%2 ) }
  • Comment on Re: What is Difference between Session and Cookie

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2021-09-28 08:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?