/** * author:coster * date: 19.9.05 * zerstört alle session die älter als 1 tag sind * * */ function destroyInactiveSessions() { global $link; $session_id = session_id(); $erstellung = getSessionDate(2); $query = "DELETE \n\t\t\t FROM\n\t\t\t REZ_GEN_SESSION\n\t\t\t WHERE\n\t\t\t ERSTELLUNG <= {$erstellung}\n \t\t\t "; $res = mysqli_query($link, $query); if (!$res) { echo "die Anfrage {$query} scheitert"; echo mysqli_error($link); return false; } else { return true; } }
/** * author:coster * date: 19.9.05 * zerst�rt alle session die �lter als 1 tag sind * * */ function destroyInactiveSessions() { global $db; $session_id = session_id(); $erstellung = getSessionDate(2); $query = "DELETE \n\t\t\t FROM\n\t\t\t BOOKLINE_SESSION\n\t\t\t WHERE\n\t\t\t ERSTELLUNG <= {$erstellung}\n \t\t\t "; //$res = $db->Execute($query); $res = $db->Execute($query); if (!$res) { print $db->ErrorMsg(); return false; } else { return true; } }