protected function CasLogout::destroySession in CAS 8
Same name and namespace in other branches
- 2.x src/Service/CasLogout.php \Drupal\cas\Service\CasLogout::destroySession()
Load up the session and destroy it.
@codeCoverageIgnore
Parameters
string $sid: The ticket id to destroy.
1 call to CasLogout::destroySession()
- CasLogout::handleSlo in src/
Service/ CasLogout.php - Handles a single-log-out request from a CAS server.
File
- src/
Service/ CasLogout.php, line 103
Class
- CasLogout
- Class CasLogout.
Namespace
Drupal\cas\ServiceCode
protected function destroySession($sid) {
session_id($sid);
session_start();
session_destroy();
session_write_close();
}