Add session expire time to local vars… When session ends, check for last activity.
If last activity was within previous hour, update DB with new sessionID and expire time. Otherwise, auto logout with message.
Upon init, create a timer that triggers a function call that verifies recent activity. IF none, then auto logout…
This requires an update of the logout php. Add message for logout type.
If normal logout, then a thank you message.
Otherwise, state: “Session has timed out and your console was closed…”