Changeset 551 for trunk


Ignore:
Timestamp:
12/12/13 15:46:34 (11 years ago)
Author:
Kris Deugau
Message:

/trunk

Fix nagging session-handling bug; cookie would expire but not session
(leaving you logged in, with no priviledges), or you could be active
but suddenly the session would expire based on your original login, not
last activity time.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dns.cgi

    r543 r551  
    9999        or die CGI::Session->errstr();
    100100
    101 if (!$sid) {
     101if (!$sid || $session->is_expired) {
    102102  $webvar{page} = 'login';
    103103} else {
     
    218218}
    219219
    220 my $sesscookie;
     220my $sesscookie = $q->cookie( -name => 'dnsadmin_session',
     221        -value => $sid,
     222#        -expires => "+".$dnsdb->{timeout},
     223        -secure => 0,
     224## fixme:  need to extract root path for cookie, so as to limit cookie to dnsadmin instance
     225#        -path => $url
     226        );
    221227
    222228# handle can-happen-on-(almost)-any-page actions
     
    237243      $sesscookie = $q->cookie( -name => 'dnsadmin_session',
    238244        -value => $sid,
    239         -expires => "+".$dnsdb->{timeout},
     245#        -expires => "+".$dnsdb->{timeout},
    240246        -secure => 0,
    241247## fixme:  need to extract root path for cookie, so as to limit cookie to dnsadmin instance
Note: See TracChangeset for help on using the changeset viewer.