fix login issue after logging out

This commit is contained in:
Robin Appelman 2010-11-04 19:42:51 +01:00
parent ad8d6c4260
commit fc5b8679da

View file

@ -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");
}
}