Session Timeout Question

Post Reply
drrehak
Newbie
Newbie
Posts: 6
Joined: Wed Jan 26, 2022 10:58 pm
Location: Pittsburgh PA
Station model: Davis Pro 2
Software: Meteobridge

Session Timeout Question

Post by drrehak » Wed Feb 02, 2022 5:17 pm

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.

User avatar
Dehatter
Professional
Professional
Posts: 350
Joined: Sun Jan 07, 2018 5:11 am
Location: Matthews, NC, USA
Station model: Ecowitt WH80
Software: Ecowitt GW1000
Contact:

Re: Session Timeout Question

Post by Dehatter » Wed Feb 02, 2022 5:50 pm

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 3234 times
Image

drrehak
Newbie
Newbie
Posts: 6
Joined: Wed Jan 26, 2022 10:58 pm
Location: Pittsburgh PA
Station model: Davis Pro 2
Software: Meteobridge

Re: Session Timeout Question

Post by drrehak » Wed Feb 02, 2022 11:36 pm

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.

Post Reply