Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: session variables

by Jaap (Curate)
on May 28, 2005 at 12:38 UTC ( #461334=note: print w/replies, xml ) Need Help??


in reply to session variables

Well... according to CGI::Session, you can just do this:
### $session already initialised as in your code # Set the username to Bart $session->param('username', 'Bart'); ... #retrieve and print the username print $session->('username'); #prints Bart
Would that work for you?

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2020-09-28 22:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If at first I donít succeed, I Ö










    Results (144 votes). Check out past polls.

    Notices?