PHP sessions default timeout [duplicate] PHP sessions default timeout [duplicate] php php

PHP sessions default timeout [duplicate]


It depends on the server configuration or the relevant directives session.gc_maxlifetime in php.ini.

Typically the default is 24 minutes (1440 seconds), but your webhost may have altered the default to something else.


You can change it in you php-configuration on your webserver.Search in php.ini for

session.gc_maxlifetime()The value is set in Seconds.


Yes, that's usually happens after 1440s (24 minutes)