Skip to content
Browse files

Fixes #384: CWebUser::changeIdentity() will now delete old unused ses…

…sion data file
  • Loading branch information...
1 parent a1f7e33 commit 30b1d6ee8119e1885724e2a40d4f2400688ced26 @qiangxue qiangxue committed Jul 29, 2012
Showing with 2 additions and 1 deletion.
  1. +1 −0 CHANGELOG
  2. +1 −1 framework/web/auth/CWebUser.php
View
1 CHANGELOG
@@ -105,6 +105,7 @@ Version 1.1.11 work in progress
- Enh: WebAppCommand has ability to generate fresh application with git or hg specific files (resurtm)
- Enh: Gii default templates: added additional metadata (PHPDoc) of the variables passed into views for better IDE autocompletion (resurtm)
- Enh: WebAppCommand generated application: added additional metadata (PHPDoc) of the variables passed into views for better IDE autocompletion (resurtm)
+- Chg #384: CWebUser::changeIdentity() will now delete old unused session data file (Qiang)
- Chg #440: Upgraded JQuery UI to 1.8.22 (samdark)
- Chg #497: Added log component and preloaded it in default console application config in order to properly log errors (samdark)
- Chg: Upgraded jQuery to 1.7.2 (samdark)
View
2 framework/web/auth/CWebUser.php
@@ -697,7 +697,7 @@ public function hasFlash($key)
*/
protected function changeIdentity($id,$name,$states)
{
- Yii::app()->getSession()->regenerateID();
+ Yii::app()->getSession()->regenerateID(true);
$this->setId($id);
$this->setName($name);
$this->loadIdentityStates($states);

0 comments on commit 30b1d6e

Please sign in to comment.
Something went wrong with that request. Please try again.