Changed scheduler to use WebGUI session object.
This commit is contained in:
parent
985b45212a
commit
d55f4f1c3c
5 changed files with 29 additions and 24 deletions
|
|
@ -11,11 +11,12 @@ package Hourly::DeleteExpiredSessions;
|
|||
#-------------------------------------------------------------------
|
||||
|
||||
use strict;
|
||||
use WebGUI::Session;
|
||||
use WebGUI::SQL;
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
sub process {
|
||||
WebGUI::SQL->write("delete from userSession where expires<".time(),$_[0]);
|
||||
WebGUI::SQL->write("delete from userSession where expires<".time());
|
||||
}
|
||||
|
||||
1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue