Heroku | Change PHP session timeout

| By Webner

In Heroku, there is no way to change HTTP session timeout (or some other php.ini settings) from user interface. For this create a file with name .user.ini and specify the properties in it. This file is to be created in root folder of project.

In our case we wanted to change the value for “session timeout”. So we need to change value of session.gc_maxlifetime variable. In .user.ini file we specified value as below:

session.gc_maxlifetime = 3600

Now it works.

Webner Solutions is a Software Development company focused on developing CRM apps (Salesforce, Zoho), LMS Apps (Moodle/Totara), Websites and Mobile apps. If you need Web development or any other software development assistance please contact us at webdevelopment@webners.com

Leave a Reply

Your email address will not be published. Required fields are marked *