Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

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

by ted.byers (Monk)
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?
talexb thinks the term 'cookie monster' is unnecessarily drogatory ;) and takes a cookie as well. Mmmm. Delicious cookies.
[davido]: A tool as pretentious as Test::Perl::Critic ought not fail to install because one of its dependencies failed to pull in List::MoreUtils.
[davido]: ...and Clone.pm

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (11)
As of 2017-04-25 16:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (458 votes). Check out past polls.