Changeset 2071 in ExiteCMS for trunk/includes/session_functions.php
- Timestamp:
- 11/26/08 16:24:46 (3 years ago)
- File:
-
- 1 edited
-
trunk/includes/session_functions.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/session_functions.php
r2019 r2071 46 46 // start the session 47 47 session_start(); 48 49 // update the timestamp of the session cookie, we want expiry after the last page load, not after the session has started! 50 setcookie(ini_get("session.name"), session_id(), time()+ini_get("session.gc_maxlifetime")); 48 51 49 52 // if the user changed the state of a panel, a cookie has been created to record the new state … … 68 71 } 69 72 73 // mark all variables in flash as used, so they get deleted at the end of this page request 74 foreach($_SESSION['_flash'] as $key => $value) { 75 $_SESSION['_flash'][$key]['used'] = true; 76 } 77 78 70 79 /*---------------------------------------------------+ 71 80 | Session related global functions | … … 123 132 return false; 124 133 } else { 125 // mark the info in the session flash as used126 $_SESSION['_flash'][$name]['used'] = true;127 134 return $_SESSION['_flash'][$name]['var']; 128 135 }
Note: See TracChangeset
for help on using the changeset viewer.
