public function setCookieParams(array $params)
    {
        $defaults = $this->getCookieParams();

        // Override defaults if present
        $params = array_merge($defaults, $params);

        return session_set_cookie_params(
            intval($params['lifetime']), 
            $params['path'], 
            $params['domain'], 
            (bool) $params['secure'], 
            (bool) $params['httponly']
        );
    }
public function setCookieParams(array $params)
    {
        $defaults = $this->getCookieParams();

        // Override defaults if present
        $params = array_merge($defaults, $params);

        return session_set_cookie_params(
            intval($params['lifetime']), 
            $params['path'], 
            $params['domain'], 
            (bool) $params['secure'], 
            (bool) $params['httponly']
        );
    }
public function setCookieParams ( array $ params ) { $ defaults = $ this -> getCookieParams ( ) ; // Override defaults if present $ params = array_merge ( $ defaults , $ params ) ; return session_set_cookie_params ( intval ( $ params [ 'lifetime' ] ) , $ params [ 'path' ] , $ params [ 'domain' ] , ( bool ) $ params [ 'secure' ] , ( bool ) $ params [ 'httponly' ] ) ; }
Returns cookie parameters for the session

@param array $params
@return array
Returns cookie parameters for the session