Remember me feature error #950
-
Hello People, First want to say thank you for this great framework. Awesome work. With that being said, want to ask if there is some issue with remember me feature, because for me isn't working well. If I check the remember me? input at login form, session registers ok and token lasts 30 days. But if i do not check the remember me? input, just simply gives me a login fail. If i do not check remember me, it is supposed to keep session till browser is closed, isnt that right? What i'm doing wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 13 replies
-
It is very strange. It is not supposed. I don't know why you get the strange results.
Of course it should be successful without remember me cookie.
No. The default session cookie lifetime is 7200 seconds. |
Beta Was this translation helpful? Give feedback.
It appears that there is something causing CI4 Session not to work in your environment.
Normally, just call
session()
, the session works fine, and you will get the session cookie.Of course, hack like adding a
session_start()
is not needed.Unfortunately, however, I do not know what is causing such a phenomenon.