-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
Closed
Description
Related to #1812
I spent two days to get to this error
session_regenerate_id(): Failed to create(read) session ID: user (path: )
on PHP7RC8 site/login & site/logout just return 500 Error . There are no messages in any log.
All because of this @. https://github.com/yiisoft/yii2/blob/master/framework/web/Session.php#L260
I'm very indignant
P.S. https://bugs.php.net/bug.php?id=70520
[2015-10-19 05:11 UTC] jacky at xsteach dot com
i met the same problem on mac osx with php7RC5. I use yii2 framework with redis as session storage.It is ok when i install php7RC2, but get error session_regenerate_id(): Failed to create session ID: user (path: ). Is this issue fixed after RC3?
UPD: updated to php 7.0.0 . Same error.
UPD2:
I commented the code
'components' => [
//'session' => [
// 'class' => 'yii\redis\Session',
// 'timeout' => 60 * 60 * 24 * 30,
//],
And now users can login & logout in site.
Problems
- What is wrong with
yii\redis\Session. - Too much
@invendor/yiisoft/yii2/web/Session.phpwhich hinder debugging