
Just sanity checking my code here - if I set fSession::setLength('1 day'), which of these apply?
A) User opens page every hour, session expires after 24 hours since their first visit
B) User opens page, lets it sit in the browser without refreshing for 24 hours, and upon next refresh it logs out
C) User opens page every hour, never gets logged out
I'm guessing it's C - does this mean setLength is really only for conditions where we need sessions to end prematurely if the user stays idle for too long? Is there any drawback to just setting it for '1 day' if I don't want users to log out because of being idle, and want to wait until they close the tab/browser? Does this mean it will wait 1 day before garbage-collecting the session?
Thanks!