headers[$key] ) ) { $this->headers[$key] = $val; } } public function getheader( $key ) { return $this->headers[$key]; } public function setcookie( $name, $value, $expire = 0 ) { $this->cookies[$name] = $value; } public function getcookie( $name ) { if ( isset( $this->cookies[$name] ) ) { return $this->cookies[$name]; } } }