protected function startSession()
    {
        if (session_status() == PHP_SESSION_NONE) {

            session_start();

            if(!$this->expireOnClose) {
                setcookie('planet_session', session_id(), time() + ($this->expireTime * 60 ), '/', null, false, false);
            }
        }
    }
protected function startSession()
    {
        if (session_status() == PHP_SESSION_NONE) {

            session_start();

            if(!$this->expireOnClose) {
                setcookie('planet_session', session_id(), time() + ($this->expireTime * 60 ), '/', null, false, false);
            }
        }
    }
protected function startSession ( ) { if ( session_status ( ) == PHP_SESSION_NONE ) { session_start ( ) ; if ( ! $ this -> expireOnClose ) { setcookie ( 'planet_session' , session_id ( ) , time ( ) + ( $ this -> expireTime * 60 ) , '/' , null , false , false ) ; } } }
To start session
To start session