A feature request which I built for a project: a maximum session length with forced logout.

I've made a patch to accomodate for this feature request. It does quite a few things:
* Adds maximum session timeout fields (global and per role)
* I've changed minimum value (a static value of 60) to a constant
* The block caching disabled
* Use the calculated remaining time instead of the fixed length in various places
* A bit of code-cleanup (removed double spaces, unused variables, etc)
* The ahah-callback set_last now also sends the remaining time back
* Extra dialog when your session has hit the max-session length

(Patch in first comment)

CommentFileSizeAuthor
#1 maximum_session_time-2377333-1.patch26.59 KBSpadXIII
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

SpadXIII’s picture

Status: Needs review » Needs work

The last submitted patch, 1: maximum_session_time-2377333-1.patch, failed testing.

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 1: maximum_session_time-2377333-1.patch, failed testing.

SpadXIII’s picture

Besides the tests failing, there's some issues that needs to be fixed first. Working on it!

johnennew’s picture

Status: Needs work » Postponed (maintainer needs more info)