destroy invalid sessions

This commit is contained in:
Arthur Schiwon 2012-10-08 13:35:59 +02:00
parent f304ec1482
commit 3affeb5bd7
1 changed files with 4 additions and 0 deletions

View File

@ -352,6 +352,10 @@ class OC{
OC_User::useBackend(new OC_User_Database());
OC_Group::useBackend(new OC_Group_Database());
if(isset($_SERVER['PHP_AUTH_USER']) && isset($_SESSION['user_id']) && $_SERVER['PHP_AUTH_USER'] != $_SESSION['user_id']) {
OC_User::logout();
}
// Load Apps
// This includes plugins for users and filesystems as well
global $RUNTIME_NOAPPS;