]> git.mjollnir.org Git - moodle.git/commitdiff
When someone logs out, cler all sessions and send them to home page
authormoodler <moodler>
Sat, 16 Nov 2002 14:24:49 +0000 (14:24 +0000)
committermoodler <moodler>
Sat, 16 Nov 2002 14:24:49 +0000 (14:24 +0000)
login/logout.php

index c0fda928eb789c2b284ec31c13fb8410eb6ae249..686ecebf17c8153294382335253c2c1d53061d1a 100644 (file)
@@ -1,11 +1,12 @@
 <?PHP // $Id$
-// Logs the user out and sends them back where they came from
+// Logs the user out and sends them to the home page
 
     require("../config.php");
 
     $USER = NULL;
+    $SESSION = NULL;
     save_session("USER");
-    redirect($HTTP_REFERER);
-    exit;
+    save_session("SESSION");
+    redirect($CFG->wwwroot);
 
 ?>