Changeset 865
- Timestamp:
- 08/21/07 23:27:03 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/main/php/net/stubbles/ipo/session/stubPHPSession.php
r390 r865 13 13 /** 14 14 * Session class using default PHP sessions. 15 * 16 * This session class offers session handling based on the default PHP session 15 * 16 * This session class offers session handling based on the default PHP session 17 17 * functions. 18 18 * … … 29 29 */ 30 30 protected $request; 31 31 32 32 /** 33 33 * template method for child classes to do the real construction 34 * 34 * 35 35 * @param stubRequest $request request instance 36 36 * @param string $sessionName name of the session … … 42 42 @session_start(); 43 43 } 44 44 45 45 /** 46 46 * returns fingerprint for user: has to use same user agent all over the session 47 * 47 * 48 48 * @return string 49 49 */ … … 52 52 return $this->request->getFilteredValue(new stubMD5Filter('', stubRegistry::getConfig('net.stubbles.ipo.session.fingerprintSalt', '')), 'HTTP_USER_AGENT', stubRequest::SOURCE_HEADER); 53 53 } 54 54 55 55 /** 56 56 * returns session id … … 91 91 $_SESSION[$key] = $value; 92 92 } 93 93 94 94 /** 95 95 * returns a value associated with the key or the default value … … 102 102 return $_SESSION[$key]; 103 103 } 104 104 105 105 /** 106 106 * checks whether a value associated with key exists … … 113 113 return isset($_SESSION[$key]); 114 114 } 115 115 116 116 /** 117 117 * removes a value from the session … … 125 125 return true; 126 126 } 127 127 128 128 /** 129 129 * return an array of all keys registered in this session
