public function serialize()
    {
        $cookies = $this->getAll();
        if (!$this->serializeSession) {
            for ($i = count($cookies) - 1; $i >= 0; $i--) {
                if (empty($cookies[$i]['expires'])) {
                    unset($cookies[$i]);
                }
            }
        }
        return serialize(array(
            'cookies'          => $cookies,
            'serializeSession' => $this->serializeSession,
            'useList'          => $this->useList
        ));
    }
public function serialize()
    {
        $cookies = $this->getAll();
        if (!$this->serializeSession) {
            for ($i = count($cookies) - 1; $i >= 0; $i--) {
                if (empty($cookies[$i]['expires'])) {
                    unset($cookies[$i]);
                }
            }
        }
        return serialize(array(
            'cookies'          => $cookies,
            'serializeSession' => $this->serializeSession,
            'useList'          => $this->useList
        ));
    }
public function serialize ( ) { $ cookies = $ this -> getAll ( ) ; if ( ! $ this -> serializeSession ) { for ( $ i = count ( $ cookies ) - 1 ; $ i >= 0 ; $ i -- ) { if ( empty ( $ cookies [ $ i ] [ 'expires' ] ) ) { unset ( $ cookies [ $ i ] ) ; } } } return serialize ( array ( 'cookies' => $ cookies , 'serializeSession' => $ this -> serializeSession , 'useList' => $ this -> useList ) ) ; }
Returns string representation of object

@return string

@see    Serializable::serialize()
Returns string representation of object