src/Http/Cookie/Cookie.php
public function discard($discard = null)
    {
        if (func_num_args() === 0) {
            return $this->_data['discard'];
        }
        return $this->_data['discard'] = (boolean) $discard;
    }
public function discard($discard = null)
    {
        if (func_num_args() === 0) {
            return $this->_data['discard'];
        }
        return $this->_data['discard'] = (boolean) $discard;
    }
public function discard ( $ discard = null ) { if ( func_num_args ( ) === 0 ) { return $ this -> _data [ 'discard' ] ; } return $ this -> _data [ 'discard' ] = ( boolean ) $ discard ; }
Set whether or not this is a session cookie.

@param  boolean $discard The discard value.
@return boolean          Returns discard value.
Set whether or not this is a session cookie .