MyCookie: $(HTTP_COOKIE{'MyCookie'})

Setting a Cookie

$add_header('Set-Cookie', 'MyCookie=SomeValue; expires='+$http_time($time()+36000)+'; path=/;')