If I understand correctly the security enforcer (in PHP) sets the session.gc_maxlifetime to some value. I know the default time can be set in the php,ini file. Unfortunately, on shared hosting plans you don’t have access to change that.
My question is what sort of things refresh that session? Is it just when you load a new page or refresh the current page? Or is there other interactions that keep the session alive? Perhaps there is some code you can add to change that timer?
I tried googling the subject but came up with no real helpful info.
I think basically anything that causes a server interaction would refresh the session lifetime.
So perhaps a simple server action which basically does nothing (perhaps just a set value) called from the action scheduler
Testing that theory now. Hopefully that works. Default timeout is 22 minutes. Sometimes when we are dealing with clients it takes us longer than that to fill out a form.
I have yet to try this in Wappler but have used this in the past for a similar situation. The code below should set the upper bound on the session duration
ini_set('session.gc_maxlifetime', 3600);
// should remember the session ID for 1 hour
session_set_cookie_params(3600);
session_start(); // should be good to go :)