Updated the hourly script to automatically deal with all sites, and to allow for plugins.
This commit is contained in:
parent
2671feae26
commit
2756f43a78
5 changed files with 164 additions and 72 deletions
22
sbin/Hourly/ExpireSessions.pm
Normal file
22
sbin/Hourly/ExpireSessions.pm
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
package Hourly::ExpireSessions;
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
# WebGUI is Copyright 2001-2002 Plain Black Software.
|
||||
#-------------------------------------------------------------------
|
||||
# Please read the legal notices (docs/legal.txt) and the license
|
||||
# (docs/license.txt) that came with this distribution before using
|
||||
# this software.
|
||||
#-------------------------------------------------------------------
|
||||
# http://www.plainblack.com info@plainblack.com
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
use strict;
|
||||
use WebGUI::SQL;
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
sub process {
|
||||
WebGUI::SQL->write("delete from userSession where expires<".time(),$_[0]);
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue