public function checkCookies()
    {
        if (sizeof($this->cookies) == 0) {
            return true;
        }
        $this->debug('checkCookie: check ' . sizeof($this->cookies) . ' cookies');
        $curr_cookies = $this->cookies;
        $this->cookies = array();
        foreach ($curr_cookies as $cookie) {
            if (!is_array($cookie)) {
                $this->debug('Remove cookie that is not an array');
                continue;
            }
            if ((isset($cookie['expires'])) && (!empty($cookie['expires']))) {
                if (strtotime($cookie['expires']) > time()) {
                    $this->cookies[] = $cookie;
                } else {
                    $this->debug('Remove expired cookie ' . $cookie['name']);
                }
            } else {
                $this->cookies[] = $cookie;
            }
        }
        $this->debug('checkCookie: ' . sizeof($this->cookies) . ' cookies left in array');
        return true;
    }
public function checkCookies()
    {
        if (sizeof($this->cookies) == 0) {
            return true;
        }
        $this->debug('checkCookie: check ' . sizeof($this->cookies) . ' cookies');
        $curr_cookies = $this->cookies;
        $this->cookies = array();
        foreach ($curr_cookies as $cookie) {
            if (!is_array($cookie)) {
                $this->debug('Remove cookie that is not an array');
                continue;
            }
            if ((isset($cookie['expires'])) && (!empty($cookie['expires']))) {
                if (strtotime($cookie['expires']) > time()) {
                    $this->cookies[] = $cookie;
                } else {
                    $this->debug('Remove expired cookie ' . $cookie['name']);
                }
            } else {
                $this->cookies[] = $cookie;
            }
        }
        $this->debug('checkCookie: ' . sizeof($this->cookies) . ' cookies left in array');
        return true;
    }
public function checkCookies ( ) { if ( sizeof ( $ this -> cookies ) == 0 ) { return true ; } $ this -> debug ( 'checkCookie: check ' . sizeof ( $ this -> cookies ) . ' cookies' ) ; $ curr_cookies = $ this -> cookies ; $ this -> cookies = array ( ) ; foreach ( $ curr_cookies as $ cookie ) { if ( ! is_array ( $ cookie ) ) { $ this -> debug ( 'Remove cookie that is not an array' ) ; continue ; } if ( ( isset ( $ cookie [ 'expires' ] ) ) && ( ! empty ( $ cookie [ 'expires' ] ) ) ) { if ( strtotime ( $ cookie [ 'expires' ] ) > time ( ) ) { $ this -> cookies [ ] = $ cookie ; } else { $ this -> debug ( 'Remove expired cookie ' . $ cookie [ 'name' ] ) ; } } else { $ this -> cookies [ ] = $ cookie ; } } $ this -> debug ( 'checkCookie: ' . sizeof ( $ this -> cookies ) . ' cookies left in array' ) ; return true ; }
checks all Cookies and delete those which are expired

@return   boolean always return true
@access   private
checks all Cookies and delete those which are expired