If you use this module to prevent multiple sessions with the same account but don't use it to put timeout on user's sessions, the $_SESSION gets flooded over time. This is because the hook_boot function will append the timestamp of each page load onto the $_SESSION variable and the only functionality that does anything with the timestamps is behind an if statement.

If you simply throw the same if statement around the location in the hook_boot where the timestamps are appended, this issue is fixed as they aren't needed. I've attached a patch for this.

CommentFileSizeAuthor
autologout.patch689 bytesGekiboy

Comments

jvandervort’s picture

Status: Active » Fixed

Thanks for the patch, committed.

jvandervort’s picture

The patch didn't work exactly as written, so I moved the clear function into hook_init.

Status: Fixed » Closed (fixed)

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