Page 1 of 1

Session Timeout Question

Posted: Wed Feb 02, 2022 5:17 pm
by drrehak
New setup question.

If I leave my browser session open for hours unattended (like overnight) and come back to it and navigate I get a browser "unauthorized access" message.
A page refresh cleans things up, but I'd like to get rid of the error.
I assume I'm getting a session timeout from some process/setting.

Changing session.gc_maxlifetime in php.ini has no effect. In fact, phpInfo doesn't even show that I changed it.

I'm running on a local Pi. Current config
PI-4 (B): Raspbian 10 (Buster)
Apache: 2.4.38
php: 7 3.31-1
mysql: libmysql - mysqlnd 5.0.12-dev - 20150407
myphpadmin: 4.6.6deb5
meteobridge pro (red)

Any suggestions? Any settings I'm missing? Anything in the template that does session managment (not been able to find anything so far)?
I know Debian does some things with garbage collection/sessions, and overrides some of the php controls. Hoping to find a solution without playing with the garbage collector.

Suggestions appreciated.

Re: Session Timeout Question

Posted: Wed Feb 02, 2022 5:50 pm
by Dehatter
You can add a HTML Meta page refresh command to your template file.
Screenshot 2022-02-02 124925.jpg
Screenshot 2022-02-02 124925.jpg (23.35 KiB) Viewed 3235 times

Re: Session Timeout Question

Posted: Wed Feb 02, 2022 11:36 pm
by drrehak
Thanks. Was so focused on the server side that I didn't think about it via the client.
Rolled it into header.php so it looks like its showing up on all the pages.