public function AutologoutSessionCleanupOnLoginTest::closeAllSessions in Automated Logout 8
Closes all stashed sessions and the current session.
1 call to AutologoutSessionCleanupOnLoginTest::closeAllSessions()
- AutologoutSessionCleanupOnLoginTest::testSessionCleanupAtLogin in tests/
src/ Functional/ AutologoutSessionCleanupOnLoginTest.php - Tests that stale sessions are cleaned up at login.
File
- tests/
src/ Functional/ AutologoutSessionCleanupOnLoginTest.php, line 221
Class
- AutologoutSessionCleanupOnLoginTest
- Tests session cleanup on login.
Namespace
Drupal\Tests\autologout\FunctionalCode
public function closeAllSessions() {
$this->database
->truncate('sessions')
->execute();
$this->loggedInUsers = [];
$this->sessionName = NULL;
$this->loggedInUser = FALSE;
$this->mink
->resetSessions();
}