public static function init($lifeTime = 0)
    {
        if (self::$sessionStarted == false) {
            session_set_cookie_params($lifeTime);
            session_start();

            return self::$sessionStarted = true;
        }

        return false;
    }
public static function init($lifeTime = 0)
    {
        if (self::$sessionStarted == false) {
            session_set_cookie_params($lifeTime);
            session_start();

            return self::$sessionStarted = true;
        }

        return false;
    }
public static function init ( $ lifeTime = 0 ) { if ( self :: $ sessionStarted == false ) { session_set_cookie_params ( $ lifeTime ) ; session_start ( ) ; return self :: $ sessionStarted = true ; } return false ; }
If session has not started, start sessions.

@param int $lifeTime → lifetime of session in seconds

@return bool
If session has not started start sessions .