website log out time

  • Answered
I am hosting a php site at I have the PHPSESSID_TTL in the config file of the site ( set to 48 hours. But the site logs out the user at around two hours. Is there a setting on my server that is overriding this?
Hello, Thank you for your question on default PHP session timeout. You should be able to control the default timeout time via your php.ini file. You can set the session.gc_maxlifetime (in seconds) to 48 hours (172,800). Local php.ini files will override the server default setting. Be sure to have the php.ini file set to recursive as well. Kindest Regards, Scott M