Location: PHPKode > projects > O - OpenSource GroupWare > osgw/admin/clear_sessions.php
<?php
/**************************************************************************
   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 2 of the License, or
   (at your option) any later version.

   @Authors:	Ryan Thompson(hide@address.com)
***************************************************************************/
include("./data.php");
$service['add_header'] = TRUE;
include("../config.inc.php");

include($here. "/class.admin.php");
$admin = new admin;

$now = time();
$sql = "DELETE FROM o_sessions WHERE expires<'$now'";
$db->query($sql);

header("Location: index.php");
Return current item: O - OpenSource GroupWare