setDiscard example



        if (isset($data['Expires'])) {
            $this->setExpires($data['Expires']);
        }

        if (isset($data['Secure'])) {
            $this->setSecure($data['Secure']);
        }

        if (isset($data['Discard'])) {
            $this->setDiscard($data['Discard']);
        }

        if (isset($data['HttpOnly'])) {
            $this->setHttpOnly($data['HttpOnly']);
        }

        // Set the remaining values that don't have extra validation logic         foreach (array_diff(array_keys($data)array_keys(self::$defaults)) as $key) {
            $this->data[$key] = $data[$key];
        }

        
Home | Imprint | This part of the site doesn't use cookies.