diff options
author | Robin Appelman <icewind1991@gmail.com> | 2010-11-04 19:42:51 +0100 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2010-11-04 19:42:51 +0100 |
commit | fc5b8679da954078d98748f111a94e64f93e83e4 (patch) | |
tree | ce2154cadfd9fa93de2b5cec7e9c23e06da1a43a | |
parent | ad8d6c42604c0aef93f456a2c406ef122f479077 (diff) | |
download | nextcloud-server-fc5b8679da954078d98748f111a94e64f93e83e4.tar.gz nextcloud-server-fc5b8679da954078d98748f111a94e64f93e83e4.zip |
fix login issue after logging out
-rwxr-xr-x | inc/User/database.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/inc/User/database.php b/inc/User/database.php index 6b1310265da..9a39e191f61 100755 --- a/inc/User/database.php +++ b/inc/User/database.php @@ -112,11 +112,14 @@ class OC_USER_DATABASE extends OC_USER_BACKEND { * */ public static function logoutLisener() { + global $WEBROOT; if ( isset($_GET['logoutbutton']) AND isset($_SESSION['username']) ) { OC_LOG::event($_SESSION['username'], 2, ''); $_SESSION['user_id'] = false; $_SESSION['username'] = ''; $_SESSION['username_clean'] = ''; + + header("location: $WEBROOT"); } } |