Session Timeout in v1.8.1

I know that previously we were able to adjust this in the global php settings. Now with everything running inside the Docker container how can this be adjusted? Thanks

The container ships with the PHP default of 1440 seconds.

There’s no way built in currently to customise that with config.env, but I can add that in the next release.

In the interim, you would need to get a terminal inside your web container, and adjust the php.ini file.

So, run docker ps

That will give you a list of running containers. In that list, find the one with cms-web in the name. This is your web container.

Run docker exec -ti name bash, where name is the container name from before.

You now have a shell inside the container. Edit /etc/php5/apache2/php.ini:

apt-get install nano
nano /etc/php5/apache2/php.ini

Make your change to session.gc_maxlifetime

Ctrl+o Enter
Ctrl+x
exit
docker stop name
docker start name

That worked perfectly, thank you.

This is now included in the 1.8.2 container.

Simply add

CMS_PHP_SESSION_GC_MAXLIFETIME=9600

to your config.env file before starting the upgrade, and it will set that for you. 9600 can be adjusted to whatever value you want to use.