Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: session variables

by Jaap (Curate)
on May 28, 2005 at 12:38 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://461334]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2024-04-24 02:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found