I recently updated to Yii 1.1.17 to gain the performance of php7. Here is my system configuration
-
Ubuntu 14.04 LTS
-
Apache 2.4.7
-
PHP Version 7.0.3-5+deb.sury.org~trusty+1 (php7.0-fpm)
-
redis-server 2.8.4
I am often getting this error
[error] [php] session_regenerate_id(): Cannot regenerate session id - session is not active (.../library/framework/yiilite.php:4615)
I am using CCacheHttpSession as my session component by passing CRedisCache as class. I am facing any issues with cache activity. only for session it is breaking.
The trace logs goes like this,
2016/02/23 12:49:27 [error] [php] session_regenerate_id(): Cannot regenerate session id - session is not active (/var/www/html/library/framework/yiilite.php:4615)
Stack trace:
#0 /var/www/html/library/framework/yiilite.php(4361): WebUser->changeIdentity()
#1 /var/www/html/library/framework/yiilite.php(4220): WebUser->restoreFromCookie()
#2 /var/www/html/library/framework/yiilite.php(1073): WebUser->init()
#3 /var/www/html/library/framework/yiilite.php(925): CWebApplication->getComponent()
#4 /var/www/html/protected/components/Controller.php(156): CWebApplication->__get()
#5 /var/www/html/protected/controllers/SiteController.php(10): SiteController->init()
#6 /var/www/html/library/framework/yiilite.php(1767): SiteController->init()
#7 /var/www/html/library/framework/yiilite.php(1688): CWebApplication->runController()
#8 /var/www/html/library/framework/yiilite.php(1205): CWebApplication->processRequest()
#9 /var/www/html/index.php(16): CWebApplication->run()
REQUEST_URI=/
in /var/www/html/protected/components/Controller.php (156)
in /var/www/html/protected/controllers/SiteController.php (10)
in /var/www/html/index.php (16)
Note:
I dont have this issue if i use just the CHttpSession component.