Yii Framework Forum: login() with duration (remember me) not working, cookie lifetime wrong - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

login() with duration (remember me) not working, cookie lifetime wrong Rate Topic: -----

#1 User is offline   StJ-Cottbus 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 07-August 15

Posted 09 September 2015 - 02:54 AM

Hi.

Simple case: basic-app installed, nothing changed, esp. enableAutoLogin is true

I expect a login to set the identity cookie with a lifetime of 30 days, but it always sets a browser-session cookie (lifetime = 0)
So on revisiting the site (after closing the browser) I'm no longer logged in.

Am I doing sth. wrong or is there some trouble under the hood?

Stephan


Solved:
Problem wasn't yii. It was a browser misconfiguration. Shame on me :)
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users