1234567891011121314151617181920212223242526272829303132333435 |
- <?php
- define('INSTALLDIR', dirname(__DIR__));
- define('PUBLICDIR', INSTALLDIR);
- $helptext = <<<END_OF_GC_HELP
- sessiongc.php
- Delete old sessions from the server
- END_OF_GC_HELP;
- require_once INSTALLDIR.'/scripts/commandline.inc';
- $maxlifetime = ini_get('session.gc_maxlifetime');
- print "Deleting sessions older than $maxlifetime seconds.\n";
- InternalSessionHandler::gc($maxlifetime);
|