Changeset 1902
- Timestamp:
- 02/02/2008 06:15:49 PM (11 months ago)
- Files:
-
- 1 modified
-
trunk/system/libraries/Session.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/libraries/Session.php
r1891 r1902 81 81 82 82 // Close the session just before sending the headers, so that 83 // the session cookie can be written84 Event::add('system.send_headers', 'session_write_close');83 // the session cookie(s) can be written. 84 Event::add('system.send_headers', array($this, 'write_close')); 85 85 86 86 // Singleton instance … … 276 276 277 277 /** 278 * Runs the system.session_write event, then calls session_write_close. 279 * 280 * @return void 281 */ 282 public function write_close() 283 { 284 static $run; 285 286 if ($run === NULL) 287 { 288 $run = TRUE; 289 290 // Run the events that depend on the session being open 291 Event::run('system.session_write'); 292 293 // Close the session 294 session_write_close(); 295 } 296 } 297 298 /** 278 299 * Method: set 279 300 * Set a session variable.
