I have the same problem. Not sure exactly when it started happening, but it was recent, most likely after a Yii update to 1.1.12. So now I’m having issues with Users who are actually logged in but their session data is not valid. I use Yii::app()->user->setState() to store some safe info, but it’s get lost sometimes now. It never used to do that. This happens on both my Windows dev system and the live Linnux (Fedora) system. Do I need to go back to 1.1.11? Actually I’m not exactly sure which revision started it. I thought it was just something with Windows…
Here’s the error I get:
PHP warning
Description
session_regenerate_id() [<a href=‘function.session-regenerate-id’>function.session-regenerate-id</a>]: Session object destruction failed
Source File
…\yii\framework\web\CHttpSession.php(182)
No source code available.
Stack Trace
#0 …\yii\framework\web\CHttpSession.php(182): session_regenerate_id()
#1 …\yii\framework\web\auth\CWebUser.php(700): CHttpSession->regenerateID()
#2 …\yii\framework\web\auth\CWebUser.php(228): CWebUser->changeIdentity()
#3 …\nd4\protected\models\LoginForm.php(84): CWebUser->login()
#4 …\nd4\protected\controllers\SiteController.php(231): LoginForm->login()
#5 …\yii\framework\web\actions\CInlineAction.php(50): SiteController->actionLogin()
#6 …\yii\framework\web\CController.php(309): CInlineAction->runWithParams()
#7 …\yii\framework\web\filters\CFilterChain.php(134): SiteController->runAction()
#8 …\yii\framework\web\filters\CFilter.php(41): CFilterChain->run()
#9 …\yii\framework\web\CController.php(1146): CAccessControlFilter->filter()
#10 …\yii\framework\web\filters\CInlineFilter.php(59): SiteController->filterAccessControl()
#11 …\yii\framework\web\filters\CFilterChain.php(131): CInlineFilter->filter()
#12 …\yii\framework\web\CController.php(292): CFilterChain->run()
#13 …\yii\framework\web\CController.php(266): SiteController->runActionWithFilters()
#14 …\yii\framework\web\CWebApplication.php(283): SiteController->run()
#15 …\yii\framework\web\CWebApplication.php(142): CWebApplication->runController()
#16 …\yii\framework\base\CApplication.php(162): CWebApplication->processRequest()
#17 …\nd4\index.php(17): CWebApplication->run()
2012-11-05 12:52:40 Apache/2.2.16 (Win32) PHP/5.3.5 Yii Framework/1.1.12