From b8aa49bc97bf0de775caf4689e3db3a226a7378a Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 20 Nov 2005 12:19:20 +0100 Subject: more http auth related fixes, unified login sequence function --- logout.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'logout.php') diff --git a/logout.php b/logout.php index cfc9fd034..7757689dc 100644 --- a/logout.php +++ b/logout.php @@ -2,12 +2,9 @@ session_start(); require_once "config.php"; + require_once "functions.php"; - $_SESSION["uid"] = null; - $_SESSION["name"] = null; - $_SESSION["access_level"] = null; - - session_destroy(); + logout_user(); if (!USE_HTTP_AUTH) { header("Location: login.php"); -- cgit v1.2.3