src/Auth.php
private function deleteSessionCookie() {
		$params = \session_get_cookie_params();

		// ask for the session cookie to be deleted (requests a cookie to be written on the client)
		$cookie = new Cookie(\session_name());
		$cookie->setPath($params['path']);
		$cookie->setDomain($params['domain']);
		$cookie->setHttpOnly($params['httponly']);
		$cookie->setSecureOnly($params['secure']);
		$result = $cookie->delete();

		if ($result === false) {
			throw new HeadersAlreadySentError();
		}
	}
private function deleteSessionCookie() {
		$params = \session_get_cookie_params();

		// ask for the session cookie to be deleted (requests a cookie to be written on the client)
		$cookie = new Cookie(\session_name());
		$cookie->setPath($params['path']);
		$cookie->setDomain($params['domain']);
		$cookie->setHttpOnly($params['httponly']);
		$cookie->setSecureOnly($params['secure']);
		$result = $cookie->delete();

		if ($result === false) {
			throw new HeadersAlreadySentError();
		}
	}
private function deleteSessionCookie ( ) { $ params = \ session_get_cookie_params ( ) ; // ask for the session cookie to be deleted (requests a cookie to be written on the client) $ cookie = new Cookie ( \ session_name ( ) ) ; $ cookie -> setPath ( $ params [ 'path' ] ) ; $ cookie -> setDomain ( $ params [ 'domain' ] ) ; $ cookie -> setHttpOnly ( $ params [ 'httponly' ] ) ; $ cookie -> setSecureOnly ( $ params [ 'secure' ] ) ; $ result = $ cookie -> delete ( ) ; if ( $ result === false ) { throw new HeadersAlreadySentError ( ) ; } }
Deletes the session cookie on the client

@throws AuthError if an internal problem occurred (do *not* catch)
Deletes the session cookie on the client