headers[$key] ) ) { $this->headers[$key] = $val; } } /** * @param $key string * @return string */ public function getheader( $key ) { return $this->headers[$key]; } /** * @param $name String: name of cookie * @param $value String: value to give cookie * @param $expire Int: number of seconds til cookie expires */ public function setcookie( $name, $value, $expire = 0 ) { $this->cookies[$name] = $value; } /** * @param $name string * @return string */ public function getcookie( $name ) { if ( isset( $this->cookies[$name] ) ) { return $this->cookies[$name]; } return null; } }