When I switched on the module on a year-old website, I was forced to manually one-by-one delete my previous 50+ sessions.
This patch wipes all previous sessions up to the amount except session_limit_max , when session_limit_auto_drop is enabled.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | session_limit_disconnect_all_v2.patch | 1.32 KB | batje |
| session_limit_disconnect_all_v1.patch | 1.32 KB | batje |
Comments
Comment #1
deekayen commentedMaybe I'm just reading the patch wrong, but it looks like it finds only 1 row that is the oldest session and kills that one. Shouldn't it disconnect *all* the oldest sessions leaving only the sessions left in the permissible limit range?
Comment #2
batje commentedIndeed, i did swap the two filenames while creating the patch.
Comment #3
batje commentedchanged status
Comment #4
deekayen commentedI'm rolling this in right now, but you might also want to combine it with http://drupal.org/project/session_expire
Comment #5
deekayen commentedCommitted to CVS