Laravel - Auth Session not expiring after browser close

后端 未结 2 859
说谎
说谎 2020-12-20 13:58

I am having a problem about sessions, or cookies, I didn\'t understand the reason.

I log on to my site with Auth::attempt($userdata, false), which means

相关标签:
2条回答
  • 2020-12-20 14:35

    I have solved my own question. It appeared that the problem is Chrome's problem. It continues to work in background, so the cookie values do not disappear. I tried my app with firefox and works perfectly.

    For more info: https://code.google.com/p/chromium/issues/detail?id=128513

    0 讨论(0)
  • 2020-12-20 14:42

    It is a desired behavior to be logged in after you re-open the browser. You can change this in app/config/session.php by setting

    'expire_on_close' => true,
    
    0 讨论(0)
提交回复
热议问题