Changeset 163 for trunk/DNSDB.pm


Ignore:
Timestamp:
11/04/11 16:30:51 (12 years ago)
Author:
Kris Deugau
Message:

/trunk

Session management

  • expire sessions properly
  • remove session ID from login page
  • load session timeout value from config file

Remove some more stale comments
Fix centering of login box on login page

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DNSDB.pm

    r160 r163  
    113113                templatedir     => 'templates/',
    114114# fmeh.  this is a real web path, not a logical internal one.  hm..
    115 #               cssdir  => 'templates/';
     115#               cssdir  => 'templates/',
     116
     117                # Session params
     118                timeout         => '3600'       # 1 hour default
    116119        );
    117120
     
    189192      $config{mailsender}       = $1 if /^mailsender\s*=\s*([a-z0-9_.@-]+)/i;
    190193      $config{mailname}         = $1 if /^mailname\s*=\s*([a-z0-9\s_.-]+)/i;
     194      # session - note this is fed directly to CGI::Session
     195      $config{timeout}  = $1 if /^[tT][iI][mM][eE][oO][uU][tT]\s*=\s*(\d+[smhdwMy]?)/;
    191196    }
    192197    close CFG;
Note: See TracChangeset for help on using the changeset viewer.