예제 #1
0
        $http->setSessionVariable('eZSessionExpirationFilterType', $expirationFilterType);
    } else {
        if ($module->isCurrentAction('RemoveAllSessions')) {
            eZSession::cleanup();
            $sessionsRemoved = true;
        } else {
            if ($module->isCurrentAction('RemoveTimedOutSessions')) {
                $gcSessionsCompleted = eZSession::garbageCollector();
                $sessionsRemoved = true;
            } else {
                if ($module->isCurrentAction('RemoveSelectedSessions')) {
                    if ($userID) {
                        if ($http->hasPostVariable('SessionKeyArray')) {
                            $sessionKeyArray = $http->postVariable('SessionKeyArray');
                            foreach ($sessionKeyArray as $sessionKeyItem) {
                                eZSession::destroy($sessionKeyItem);
                            }
                        }
                    } else {
                        if ($http->hasPostVariable('UserIDArray')) {
                            $userIDArray = $http->postVariable('UserIDArray');
                            if (count($userIDArray) > 0) {
                                eZSession::getHandlerInstance()->deleteByUserIDs($userIDArray);
                            }
                        }
                    }
                }
            }
        }
    }
}