src/RocknRoot/StrayFw/Http/Session.php
public static function init()
    {
        if (self::$isInit === false) {
            if (session_id() == null) {
                $settings = Config::getSettings();
                session_name(isset($settings['session_name']) === true ? $settings['session_name'] : 'stray_session');
                if (isset($settings['session_cookie_domain']) === true) {
                    session_set_cookie_params(0, '/', $settings['session_cookie_domain']);
                }
                session_start();
            }
            self::$isInit = true;
        }
    }
public static function init()
    {
        if (self::$isInit === false) {
            if (session_id() == null) {
                $settings = Config::getSettings();
                session_name(isset($settings['session_name']) === true ? $settings['session_name'] : 'stray_session');
                if (isset($settings['session_cookie_domain']) === true) {
                    session_set_cookie_params(0, '/', $settings['session_cookie_domain']);
                }
                session_start();
            }
            self::$isInit = true;
        }
    }
public static function init ( ) { if ( self :: $ isInit === false ) { if ( session_id ( ) == null ) { $ settings = Config :: getSettings ( ) ; session_name ( isset ( $ settings [ 'session_name' ] ) === true ? $ settings [ 'session_name' ] : 'stray_session' ) ; if ( isset ( $ settings [ 'session_cookie_domain' ] ) === true ) { session_set_cookie_params ( 0 , '/' , $ settings [ 'session_cookie_domain' ] ) ; } session_start ( ) ; } self :: $ isInit = true ; } }
Initialize session.

@static
Initialize session .