Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: How do you do sessions in Web Sites

by riczho (Initiate)
on Sep 29, 2005 at 01:45 UTC ( [id://495960]=note: print w/replies, xml ) Need Help??


in reply to Re: How do you do sessions in Web Sites
in thread How do you do sessions in Web Sites

Wow-- looks like you kinda reinvented the wheel-- CGI::Session should sessions-- and you can include the session id in the URL.
  • Comment on Re^2: How do you do sessions in Web Sites

Replies are listed 'Best First'.
Re^3: How do you do sessions in Web Sites
by zby (Vicar) on Sep 29, 2005 at 12:27 UTC
    I don't understand where I am reinventing something. If the session is in the url and a session is owned by someone then if someone else uses that url he will be logged in as the original user. This is confusing from many points of view. So ideally you should split the authentication part of the session from the state part and code in the url only the state part.

    To put it in other words there is a public and private part of the session and since urls are mostly treated as public you should not use urls for the private part of the session. This is a general remark. If you want to concentrate on CGI::Session then we can analyze if it fits to this kind of usage.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2024-04-18 03:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found