how to clear a cookie value in request object

Maxim Dounin mdounin at mdounin.ru
Mon Nov 4 21:57:24 UTC 2013


Hello!

On Sat, Nov 02, 2013 at 11:04:30AM -0700, Mike Ellery wrote:

[...]

> > Proper solution would be to provide a new value for the Cookie
> > header in a variable (taking into account multiple cookies in a
> > single header), and then use
> >
> >     proxy_set_header Cookie $your_new_cookie_value;
> >
> > in configuration, much like with the $proxy_add_x_forwarded_for
> > variable as available for X-Forwarded-For header modification.
> >
> > --
> > Maxim Dounin
> > http://nginx.org/en/donation.html
> >
> >
> 
> Maxim,
> 
> Thanks for your helpful response. Is there a predefined variable that
> I can use to store my modified cookie value or will I just need to
> create a new custom variable value?

You have to create your custom variable.

-- 
Maxim Dounin
http://nginx.org/en/donation.html



More information about the nginx-devel mailing list