Skip to content

PHP7 site/login session_regenerate_id #10325

@githubjeka

Description

@githubjeka

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

  1. What is wrong with yii\redis\Session .
  2. Too much @ in vendor/yiisoft/yii2/web/Session.php which hinder debugging

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions