public function flushExpiredCookies()
    {
        foreach ($this->cookieJar as $domain => $pathCookies) {
            foreach ($pathCookies as $path => $namedCookies) {
                foreach ($namedCookies as $name => $cookie) {
                    if ($cookie->isExpired()) {
                        unset($this->cookieJar[$domain][$path][$name]);
                    }
                }
            }
        }
    }
public function flushExpiredCookies()
    {
        foreach ($this->cookieJar as $domain => $pathCookies) {
            foreach ($pathCookies as $path => $namedCookies) {
                foreach ($namedCookies as $name => $cookie) {
                    if ($cookie->isExpired()) {
                        unset($this->cookieJar[$domain][$path][$name]);
                    }
                }
            }
        }
    }
public function flushExpiredCookies ( ) { foreach ( $ this -> cookieJar as $ domain => $ pathCookies ) { foreach ( $ pathCookies as $ path => $ namedCookies ) { foreach ( $ namedCookies as $ name => $ cookie ) { if ( $ cookie -> isExpired ( ) ) { unset ( $ this -> cookieJar [ $ domain ] [ $ path ] [ $ name ] ) ; } } } } }
Removes all expired cookies.
Removes all expired cookies .