Changeset 154
- Timestamp:
- 01/25/07 18:34:23 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/main/php/net/stubbles/ipo/session/stubPHPSession.php
r153 r154 55 55 public function regenerateID() 56 56 { 57 session_regenerate_id();57 @session_regenerate_id(true); 58 58 } 59 59 … … 63 63 public function invalidate() 64 64 { 65 $ this->reset();65 $_SESSION = array(); 66 66 @session_destroy(); 67 67 @session_start(); … … 75 75 public function reset() 76 76 { 77 $_SESSION = array(); 77 $nextToken = $_SESSION[stubSession::NEXT_TOKEN]; 78 $_SESSION = array(stubSession::START_TIME => time(), 79 stubSession::FINGERPRINT => $this->getFingerprint(), 80 stubSession::NEXT_TOKEN => $nextToken 81 ); 78 82 } 79 83 trunk/src/test/php/net/stubbles/ipo/IPOTestSuite.php
r153 r154 36 36 37 37 $this->addTestFile($dir . '/session/stubBaseSessionTestCase.php'); 38 $this->addTestFile($dir . '/session/stubPHPSessionTestCase.php'); 38 39 } 39 40 } trunk/src/test/run.php
r152 r154 7 7 * @subpackage test 8 8 */ 9 ob_start(); 9 10 define('TEST_SRC_PATH', dirname(__FILE__)); 10 11 require TEST_SRC_PATH . '/../../config/php/config.php'; … … 44 45 } 45 46 stubblesTestRunner::main(); 47 ob_end_flush(); 46 48 ?>
