public function unserialize($serialized)
    {
        $data = unserialize($serialized);
        $now  = $this->now();
        $this->serializeSessionCookies($data['serializeSession']);
        $this->usePublicSuffixList($data['useList']);
        foreach ($data['cookies'] as $cookie) {
            if (!empty($cookie['expires']) && $cookie['expires'] <= $now) {
                continue;
            }
            if (!isset($this->cookies[$cookie['domain']])) {
                $this->cookies[$cookie['domain']] = array();
            }
            if (!isset($this->cookies[$cookie['domain']][$cookie['path']])) {
                $this->cookies[$cookie['domain']][$cookie['path']] = array();
            }
            $this->cookies[$cookie['domain']][$cookie['path']][$cookie['name']] = $cookie;
        }
    }
public function unserialize($serialized)
    {
        $data = unserialize($serialized);
        $now  = $this->now();
        $this->serializeSessionCookies($data['serializeSession']);
        $this->usePublicSuffixList($data['useList']);
        foreach ($data['cookies'] as $cookie) {
            if (!empty($cookie['expires']) && $cookie['expires'] <= $now) {
                continue;
            }
            if (!isset($this->cookies[$cookie['domain']])) {
                $this->cookies[$cookie['domain']] = array();
            }
            if (!isset($this->cookies[$cookie['domain']][$cookie['path']])) {
                $this->cookies[$cookie['domain']][$cookie['path']] = array();
            }
            $this->cookies[$cookie['domain']][$cookie['path']][$cookie['name']] = $cookie;
        }
    }
public function unserialize ( $ serialized ) { $ data = unserialize ( $ serialized ) ; $ now = $ this -> now ( ) ; $ this -> serializeSessionCookies ( $ data [ 'serializeSession' ] ) ; $ this -> usePublicSuffixList ( $ data [ 'useList' ] ) ; foreach ( $ data [ 'cookies' ] as $ cookie ) { if ( ! empty ( $ cookie [ 'expires' ] ) && $ cookie [ 'expires' ] <= $ now ) { continue ; } if ( ! isset ( $ this -> cookies [ $ cookie [ 'domain' ] ] ) ) { $ this -> cookies [ $ cookie [ 'domain' ] ] = array ( ) ; } if ( ! isset ( $ this -> cookies [ $ cookie [ 'domain' ] ] [ $ cookie [ 'path' ] ] ) ) { $ this -> cookies [ $ cookie [ 'domain' ] ] [ $ cookie [ 'path' ] ] = array ( ) ; } $ this -> cookies [ $ cookie [ 'domain' ] ] [ $ cookie [ 'path' ] ] [ $ cookie [ 'name' ] ] = $ cookie ; } }
Constructs the object from serialized string

@param string $serialized string representation

@see   Serializable::unserialize()
Constructs the object from serialized string