Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 23cbf014c06e1e13bff76dcb27015f36b82b24a3 1 parent bf09e37
moodler authored
Showing with 4 additions and 3 deletions.
  1. +4 −3 login/logout.php
View
7 login/logout.php
@@ -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);
?>
Please sign in to comment.
Something went wrong with that request. Please try again.