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

Re: reg access of stored session variable

by hippo (Monsignor)
on Nov 11, 2013 at 11:29 UTC ( #1061979=note: print w/replies, xml ) Need Help??


in reply to reg access of stored session variable

I've never used CGI::Session, but this looks wrong:

my $session = CGI::Session->new((undef, $cgi, {Directory=>"/tmp"})); $session = CGI::Session->new();

Do you mean to overwrite the $session variable here?

Also, your DB query in the first script looks susceptible to an SQL injection.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1061979]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2016-12-08 08:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (136 votes). Check out past polls.