New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A Session bug. #10489

Closed
cevin opened this Issue Dec 28, 2015 · 12 comments

Comments

Projects
None yet
5 participants
@cevin

cevin commented Dec 28, 2015

File https://github.com/yiisoft/yii2/blob/master/framework/web/User.php : 573

If set session handler is redis, function regenerateID will be error.

@samdark

This comment has been minimized.

Show comment
Hide comment
@samdark

samdark Dec 28, 2015

Member

Can you provide error message along with stacktrace?

Member

samdark commented Dec 28, 2015

Can you provide error message along with stacktrace?

@cevin

This comment has been minimized.

Show comment
Hide comment
@cevin

cevin Dec 28, 2015

Failed to create(read) session ID "tmp path".

cevin commented Dec 28, 2015

Failed to create(read) session ID "tmp path".

@SilverFire

This comment has been minimized.

Show comment
Hide comment
@SilverFire

SilverFire Dec 28, 2015

Member

Could you show a stacktrace, please?

Member

SilverFire commented Dec 28, 2015

Could you show a stacktrace, please?

@githubjeka

This comment has been minimized.

Show comment
Hide comment
@githubjeka

githubjeka Dec 29, 2015

Contributor

@cevin What is PHP version?

P.S. Most likely this is again a REDIS problem . Like as #10325

Contributor

githubjeka commented Dec 29, 2015

@cevin What is PHP version?

P.S. Most likely this is again a REDIS problem . Like as #10325

@cevin

This comment has been minimized.

Show comment
Hide comment
@cevin

cevin Dec 29, 2015

@SilverFire just return 500 error.not have any trace info.

use var_dump & exit let me know the problem is session_regenerate_id. And the error is a redis problem just like @githubjeka .

cevin commented Dec 29, 2015

@SilverFire just return 500 error.not have any trace info.

use var_dump & exit let me know the problem is session_regenerate_id. And the error is a redis problem just like @githubjeka .

@githubjeka

This comment has been minimized.

Show comment
Hide comment
@githubjeka
Contributor

githubjeka commented Dec 29, 2015

@githubjeka

This comment has been minimized.

Show comment
Hide comment
@githubjeka

githubjeka Dec 29, 2015

Contributor

And try to update yiisoft/yii2-redis to dev-master

Contributor

githubjeka commented Dec 29, 2015

And try to update yiisoft/yii2-redis to dev-master

@SilverFire

This comment has been minimized.

Show comment
Hide comment
@SilverFire

SilverFire Jan 15, 2016

Member

@cevin did you solve your problem?

Member

SilverFire commented Jan 15, 2016

@cevin did you solve your problem?

@samdark

This comment has been minimized.

Show comment
Hide comment
@samdark
Member

samdark commented Jan 15, 2016

@samdark samdark added this to the 2.0.8 milestone Jan 15, 2016

@cevin

This comment has been minimized.

Show comment
Hide comment
@cevin

cevin Jan 16, 2016

@SilverFire

\yii\redis\Session add a function like this.

    public function regenerateID($deleteOldSession = false)
    {
        return true;
    }

cevin commented Jan 16, 2016

@SilverFire

\yii\redis\Session add a function like this.

    public function regenerateID($deleteOldSession = false)
    {
        return true;
    }
@githubjeka

This comment has been minimized.

Show comment
Hide comment
@githubjeka

githubjeka Jan 16, 2016

Contributor

Dear SilverFire.
return true; is equals he solved his problem.

Let's close the issue ^_^

Contributor

githubjeka commented Jan 16, 2016

Dear SilverFire.
return true; is equals he solved his problem.

Let's close the issue ^_^

@SilverFire

This comment has been minimized.

Show comment
Hide comment
@SilverFire

SilverFire Jan 16, 2016

Member

I'm closing the issue in favour of #10583

Member

SilverFire commented Jan 16, 2016

I'm closing the issue in favour of #10583

@SilverFire SilverFire closed this Jan 16, 2016

@cebe cebe removed this from the 2.0.8 milestone Jan 17, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment