Debian10, By debian 10 the default value of session.gc_maxlifetime is set to 24 min of 1440 seconds.
Change session lifetime 24 minutes (1440 seconds) to 1 hour (3600)
edit php.ini
pico /etc/php/7.3/apache2/php.ini
and change
; After this number of seconds, stored data will be seen as 'garbage' and
; cleaned up by the garbage collection process.
; http://php.net/session.gc-maxlifetime
session.gc_maxlifetime = 1440
to
; After this number of seconds, stored data will be seen as 'garbage' and
; cleaned up by the garbage collection process.
; http://php.net/session.gc-maxlifetime
session.gc_maxlifetime = 3600
restart Apache2
/etc/init.d/apache2 restart
Formula to calculate seconds into hours of days
3600 = 1 hour = [ 60 x 60 = 3600 ] ( seconds * minuts * = hour )
86400 = 1 day = [ 60 x 60 x 24 = 86400 ] ( seconds * minuts * hours = hour )
604800 = 1 week = [ 60 x 60 x 24 x 7 = 604800 ] ( seconds * minuts * hours * days= week )
Previous page: Deprecated: mysql_db_query()
Next page: Mysql