Closed (fixed)
Project:
Session expire
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
5 Nov 2012 at 12:01 UTC
Updated:
13 Sep 2014 at 07:27 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
laurentchardin commentedPatch attached with:
- adding missing constants: SESSION_EXPIRE_INTERVAL
- revamped session_expire_cron() method
Comment #2
laurentchardin commentedFixing missing return carriage.
Comment #3
timaholt commentedHere is an expanded patch that adds the ability to define the interval again into the admin section. I feel like for users with minimal administrative logins (but with aggressive expire times like 15 minutes) you want it to run it during each cron run, instead of only running once a day. This contains all the above work from laurentchardin but adds this back to the admin section. Also I cleaned up a couple of changes that were made to spacing in the original patch.
Comment #4
caschbre commentedI had included the latest dev version in an installation profile and was receiving this error during the installation process.
I haven't tested everything in the patch, however I can confirm that #3 does allow me to get through the installation process without error.
Comment #4.0
caschbre commentedSmall rephrasing
Comment #5
shrop commentedI tested #3 and it works well. Fixes both errors I was having:
Error: Call to undefined method DeleteQuery::range() in /var/www/sites/all/modules/contrib/session_expire/session_expire.module, line 111and
Notice: Use of undefined constant SESSION_EXPIRE_INTERVAL - assumed 'SESSION_EXPIRE_INTERVAL' in session_expire_cron() (line 95 of /var/www/sites/all/modules/contrib/session_expire/session_expire.module).The new cron interval admin setting also works well for me.
Comment #6
shrop commentedComment #8
deekayen commentedComment #10
szecsodimlaszlo commentedThis commit was not included in the last dev release (7.x-1.0-alpha1+5-dev / April 7, 2014 - 15:19).
Dev release needs to be rebuilt.