lithium\storage\session\adapter\Php::isStarted()
Obtain the status of the session.
Returns
booleanTrue if a session is currently started, False otherwise. If PHP 5.4 then we know, if PHP 5.3 then we cannot tell for sure if a session has been closed.
Source
public function isStarted() {
if (function_exists('session_status')) {
return session_status() === PHP_SESSION_ACTIVE;
}
return isset($_SESSION) && session_id();
}