Permalink
Browse files

When someone logs out, cler all sessions and send them to home page

  • Loading branch information...
1 parent bf09e37 commit 23cbf014c06e1e13bff76dcb27015f36b82b24a3 moodler committed Nov 16, 2002
Showing with 4 additions and 3 deletions.
  1. +4 −3 login/logout.php
View
@@ -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);
?>

0 comments on commit 23cbf01

Please sign in to comment.