Login Cookie Timeout

Hello dear SPIPers,

I am building a Webapp on top of SPIP, and was wondering how to increase the lifetime of a SPIP Session/Login.

Normally users get logged out if they don’t come back to the site for a few days. Is it possible to set the SPIP Session to live for example for the duration of 365 days?

I can make a field on the login for « stay logged in until I click logout » - but how can I guarantee that the SPIP sessions in /tmp live longer?

Warm regards!
Urs

Le 09/12/2020 à 09:41, Urs Riggenbach via spip-en a écrit :

I am building a Webapp on top of SPIP, and was wondering how to increase the lifetime of a SPIP Session/Login.

in mes_options.php :
define('_RENOUVELLE_ALEA', 400 * 3600);
increases session lifetime to about 2 weeks

JL

Great, thank you JLuc!