r/PHPhelp • u/AssistanceClean948 • Aug 24 '26
PHP Default Session Management
I need to manually configure user side cookie expiration and server side session data expiration separately. also I can't find a way to update existing session data expiration since I update the expiration value of the cookie in some requests to keep user logged in.
am I missing something?
2
Upvotes
View all comments
Show parent comment
1
u/AssistanceClean948 Aug 24 '26
> This means that changing
gc_maxlifetimein some requests is ineffective - requests with a lower gc_maxlifetime still have a chance to delete the server-side data files based on the lower value.I mean I set that maxlifetime in the begining of the request how it could be happen? assuming I have 1 web app in the current machine