Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^5: Problems getting session management to work: is_expired seems to lie to me

by ted.byers (Scribe)
on May 06, 2013 at 23:59 UTC ( #1032418=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      $session = CGI::Session->new('driver:mysql',$query,{ DataSource  => 
    +'dbi:mysql:profitorius',
                                  User        => 'rejbyers',
                                  Password    => 'Didr39Qcab' });
      $session->expire("5m");
    
  2. or download this
      $session = CGI::Session->load('driver:mysql',$query,{ DataSource  =>
    + 'dbi:mysql:profitorius',
                                  User        => 'rejbyers',
                                  Password    => 'Didr39Qcab' });
      my $extest = $session->is_expired;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (12)
As of 2014-10-22 08:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (114 votes), past polls