Changeset 5325
- Timestamp:
- 10/01/07 06:37:47 (1 year ago)
- Files:
-
- branches/dwhittle/lib/storage/sfNoStorage.class.php (modified) (3 diffs)
- branches/dwhittle/lib/storage/sfSessionStorage.class.php (modified) (1 diff)
- branches/dwhittle/lib/storage/sfSessionTestStorage.class.php (modified) (1 diff)
- branches/dwhittle/lib/storage/sfStorage.class.php (modified) (2 diffs)
- branches/dwhittle/lib/user/sfBasicSecurityUser.class.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/dwhittle/lib/storage/sfNoStorage.class.php
r4897 r5325 4 4 * This file is part of the symfony package. 5 5 * (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com> 6 * 6 * 7 7 * For the full copyright and license information, please view the LICENSE 8 8 * file that was distributed with this source code. … … 57 57 58 58 /** 59 * Executes the shutdown procedure.60 *61 * @throws <b>sfStorageException</b> If an error occurs while shutting down this storage62 */63 public function shutdown()64 {65 }66 67 /**68 59 * Writes data to this storage. 69 60 * … … 78 69 { 79 70 } 71 72 /** 73 * Regenerates id that represents this storage. 74 * 75 * @param boolean Destroy session when regenerating 76 * @return boolean True if session regenerated, false if error 77 * 78 */ 79 public function regenerate($destroy = false) 80 { 81 } 82 83 /** 84 * Executes the shutdown procedure. 85 * 86 * @throws <b>sfStorageException</b> If an error occurs while shutting down this storage 87 */ 88 public function shutdown() 89 { 90 } 80 91 } branches/dwhittle/lib/storage/sfSessionStorage.class.php
r5323 r5325 136 136 137 137 /** 138 * Regenerates id that represents this storage. 139 * 140 * @param boolean Destroy session when regenerating? 141 * @return boolean True if session regenerated, false if error 142 * 143 */ 144 public function regenerate($destroy = false) 145 { 146 // regenerate a new session id 147 session_regenerate_id($destroy); 148 } 149 150 /** 138 151 * Executes the shutdown procedure. 139 152 * branches/dwhittle/lib/storage/sfSessionTestStorage.class.php
r4897 r5325 133 133 134 134 /** 135 * Regenerates id that represents this storage. 136 * 137 * @param boolean Destroy session when regenerating? 138 * @return boolean True if session regenerated, false if error 139 * 140 */ 141 public function regenerate($destroy = false) 142 { 143 // regenerate a new session id 144 } 145 146 /** 135 147 * Executes the shutdown procedure. 136 148 * branches/dwhittle/lib/storage/sfStorage.class.php
r5047 r5325 5 5 * (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com> 6 6 * (c) 2004-2006 Sean Kerr. 7 * 7 * 8 8 * For the full copyright and license information, please view the LICENSE 9 9 * file that was distributed with this source code. … … 66 66 */ 67 67 abstract public function read($key); 68 69 /** 70 * Regenerates id that represents this storage. 71 * 72 * @param boolean Destroy session when regenerating? 73 * 74 * @return boolean True if session regenerated, false if error 75 * 76 * @throws <b>sfStorageException</b> If an error occurs while regenerating this storage 77 */ 78 abstract public function regenerate($destroy = false); 68 79 69 80 /** branches/dwhittle/lib/user/sfBasicSecurityUser.class.php
r5164 r5325 5 5 * (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com> 6 6 * (c) 2004-2006 Sean Kerr. 7 * 7 * 8 8 * For the full copyright and license information, please view the LICENSE 9 9 * file that was distributed with this source code. … … 54 54 * 55 55 * @param mixed credential 56 */ 56 */ 57 57 public function removeCredential($credential) 58 58 { … … 72 72 } 73 73 } 74 } 75 } 74 $this->storage->regenerate(false); 75 } 76 } 76 77 77 78 /** … … 109 110 } 110 111 } 111 } 112 113 112 $this->storage->regenerate(false); 113 } 114 115 114 116 /** 115 117 * Returns true if user has credential. … … 186 188 $this->clearCredentials(); 187 189 } 190 191 $this->storage->regenerate(false); 188 192 } 189 193