php - Why are my session lifetimes not expiring when they're supposed to? -


when users login, want set amount of time before session expires. i've accomplished setting lifetime in session_set_cookie_params.

when @ cookie's expiration date says:

saturday, december 8, 3296 @ 11:45:08 am

but when come after hour cookie there site won't recognize it. why won't site recognize or use cookie?

cookie contains session identifier. data stored on server side. php periodically deletes expired sessions. when you're returning after 1 hour, session data lost , session id cookie can't match anything.

chck out session.gc_maxlifetime (http://php.net/manual/en/session.configuration.php#ini.session.gc-maxlifetime) more info.


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

json - ORA-06502: PL/SQL: numeric or value error: character string buffer too small - Convert Clob to varchar2 -

ios - Swift Array Resetting Itself -