Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+4 votes
343 views
in Q2A Core by
Is there any expiration time (1 day ) for Remember Me Option ?

Like the site will only remember me (no need to login after open broswer again) in a day and the next day you will have to login again. Is there any option for this? Or where I can modify it in the code?

Thanks !
Q2A version: 1.6.3

1 Answer

+1 vote
by
selected by
 
Best answer

If you check the "Remember" option when you login, the "q2a session" expiration time is set to 1 month, creating a qa_session cookie and sending it back in the http response.

See also here :

https://github.com/q2a/question2answer/blob/8274a6e876c3682e878febfb02080a2291f7612e/qa-include/qa-app-users.php#L187

by
Do you know how to set it to 1 day ? May be in the core code ?
by
Thanks for the link !
by
Ok.
2.592.000 is 30 days, so 86.400 is 1 day.
...