Download & Extend

Session timestamp only updated on non-cached pages

Project:Automated Logout
Version:6.x-2.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:jvandervort
Status:closed (fixed)

Issue Summary

The $_SESSION['lastaccess'] variable is set on login, but the times that it is updated are only apparently during hook_init(), when it should really be updated during hook_boot() since init() doesn't load on cached pages. When users only surf cached pages, autologout doesn't see their activity and logs them out anyway.

Comments

#1

Status:active» fixed

I have made this change in cvs, test the newest dev release and test for me

#2

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

#3

Status:closed (fixed)» active

Reverted this change. Need to revisit this. Hook_boot has crashed many sites with other modules and doesn't seem dependable.
I think we need to figure out a way to only update the $_SESSION['lastaccess'] variable, but leave all logic in hook_init.

#4

New fix committed in 6.x-2.x-dev for the Jan 19 nightly.

#5

Status:active» fixed

#6

Assigned to:Anonymous» jvandervort

#7

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.