12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
- define('INSTALLDIR', realpath(dirname(__FILE__) . '/..'));
- $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";
- Session::gc($maxlifetime);
|