Ejemplo n.º 1
0
 public static function destroy($session_id)
 {
     self::$destroyed = true;
     if (!self::db_table_exists('session', true)) {
         $file = _UCM_FOLDER . "/temp/sess_{$session_id}";
         if (file_exists($file)) {
             unlink($file);
         }
         return false;
     }
     $sql = "DELETE FROM `" . _DB_PREFIX . "session` WHERE `session_id` = '" . mysql_real_escape_string($session_id) . "'";
     query($sql);
 }