Changeset 552 for branches/stable


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

/branches/stable

Merge session-handling fix

Location:
branches/stable
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/stable

  • branches/stable/dns.cgi

    r548 r552  
    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.