protected function setSessionConfig ()
    {
        // 1 WEEK FROM NOW
        $oneWeek        = time() + 60 * 60 * 24 * 7;
        $this->expire   = $this->expire     ?? $oneWeek;
        // '/path' or dir that is using cookies
        $this->path     = $this->path       ?? "/";
        // 'www.mysite.com';
        $this->domain   = $this->domain     ?? NULL;
        // isset($_SERVER['HTTPS']);
        $this->secure   = $this->secure     ?? NULL;
        // JavaScript can't access cookie
        $this->httponly = $this->httponly   ?? TRUE;
        session_set_cookie_params($this->expire, $this->path, $this->domain, $this->secure, $this->httponly);
    }
protected function setSessionConfig ()
    {
        // 1 WEEK FROM NOW
        $oneWeek        = time() + 60 * 60 * 24 * 7;
        $this->expire   = $this->expire     ?? $oneWeek;
        // '/path' or dir that is using cookies
        $this->path     = $this->path       ?? "/";
        // 'www.mysite.com';
        $this->domain   = $this->domain     ?? NULL;
        // isset($_SERVER['HTTPS']);
        $this->secure   = $this->secure     ?? NULL;
        // JavaScript can't access cookie
        $this->httponly = $this->httponly   ?? TRUE;
        session_set_cookie_params($this->expire, $this->path, $this->domain, $this->secure, $this->httponly);
    }
protected function setSessionConfig ( ) { // 1 WEEK FROM NOW $ oneWeek = time ( ) + 60 * 60 * 24 * 7 ; $ this -> expire = $ this -> expire ?? $ oneWeek ; // '/path' or dir that is using cookies $ this -> path = $ this -> path ?? "/" ; // 'www.mysite.com'; $ this -> domain = $ this -> domain ?? NULL ; // isset($_SERVER['HTTPS']); $ this -> secure = $ this -> secure ?? NULL ; // JavaScript can't access cookie $ this -> httponly = $ this -> httponly ?? TRUE ; session_set_cookie_params ( $ this -> expire , $ this -> path , $ this -> domain , $ this -> secure , $ this -> httponly ) ; }
Sets session cofiguration before session starts.
@return void
Sets session cofiguration before session starts .