Changeset 2071 in ExiteCMS for trunk/includes/session_functions.php


Ignore:
Timestamp:
11/26/08 16:24:46 (3 years ago)
Author:
WanWizard
Message:

optimized the member selection code in the administrators admin module
modified the layout in the administrators admin module
added new common themes as svn:externals
fixed issue with permature expiring of session cookies
disabled wikilink parsing in user signatures

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/session_functions.php

    r2019 r2071  
    4646// start the session 
    4747session_start(); 
     48 
     49// update the timestamp of the session cookie, we want expiry after the last page load, not after the session has started! 
     50setcookie(ini_get("session.name"), session_id(), time()+ini_get("session.gc_maxlifetime")); 
    4851 
    4952// if the user changed the state of a panel, a cookie has been created to record the new state 
     
    6871} 
    6972 
     73// mark all variables in flash as used, so they get deleted at the end of this page request 
     74foreach($_SESSION['_flash'] as $key => $value) { 
     75    $_SESSION['_flash'][$key]['used'] = true; 
     76} 
     77 
     78 
    7079/*---------------------------------------------------+ 
    7180| Session related global functions                   | 
     
    123132        return false; 
    124133    } else { 
    125         // mark the info in the session flash as used 
    126         $_SESSION['_flash'][$name]['used'] = true; 
    127134        return $_SESSION['_flash'][$name]['var']; 
    128135    } 
Note: See TracChangeset for help on using the changeset viewer.