Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: CGI::Session and simple authentication

by thomas895 (Deacon)
on Jun 03, 2014 at 04:50 UTC ( [id://1088337]=note: print w/replies, xml ) Need Help??


in reply to CGI::Session and simple authentication

That's because you're not checking for anything in the session. Use $session->param like you would for the CGI object.

For example:

$session->param( -name => "can_access", -value => 1 ); #sometime later, likely in a different request... if($session->param("can_access")) { #show secret page } else { #not allowed to see secret page }
~Thomas~ 
"Excuse me for butting in, but I'm interrupt-driven..."

Replies are listed 'Best First'.
Re^2: CGI::Session and simple authentication
by Kyshtynbai (Sexton) on Jun 03, 2014 at 08:32 UTC
    Thank you a lot, now I get it!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-23 22:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found