Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

session variables

by rjsaulakh (Beadle)
on May 26, 2005 at 05:47 UTC ( [id://460509]=perlquestion: print w/replies, xml ) Need Help??

rjsaulakh has asked for the wisdom of the Perl Monks concerning the following question:

I am having a login page and i want to have session variables set for the user login .how can i do that using cgi perl if there is any other way please let me know

Replies are listed 'Best First'.
Re: session variables
by edan (Curate) on May 26, 2005 at 05:51 UTC
Re: session variables
by murugu (Curate) on May 26, 2005 at 06:17 UTC
Re: session variables
by monarch (Priest) on May 26, 2005 at 11:43 UTC
    Session variables is a hard topic to crack. After looking at what the above mentioned module has provided consider:
    - who do you want to make responsible for tracking your sessions?

    If it's the user, then give them a cookie with the state information you need. E.g. username/password.

    If you want something that will work regardless of cookie support on a browser then a session key is required, and you'll have to store that somewhere, presumably a database that you have. Then you give the user the session key attached to every URL they might click on, or embed it as a hidden field into every form you create.

    Sessions are tricky! Good luck..

      Do you really want to store user passwords on whatever computers they happen to use, away from your control?

Re: session variables
by thcsoft (Monk) on May 26, 2005 at 11:42 UTC
    honestly: there are a lot of very trivial ways for handling sessions. maybe you consider me arrogant now, but: why don't you just let your own brain try - before you ask?

    language is a virus from outer space.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2024-04-24 22:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found