lithium\storage\session\adapter\Php::enabled()
Determines if PHP sessions are enabled.
Returns
booleanReturns true
if enabled (PHP session functionality
can be disabled completely), false
otherwise.
Source
public static function enabled() {
if (function_exists('session_status')) {
return session_status() !== PHP_SESSION_DISABLED;
}
return in_array('session', get_loaded_extensions());
}