Can Varnish Set Cookies?

Roberto O. Fernández Crisial roberto.fernandezcrisial at gmail.com
Fri Nov 18 21:48:56 CET 2011


Travis,

Have you tried with..

set req.http.Set-Cookie = "something";
set beresp.http.Set-Cookie = "something";

?

Regards,
Roberto O. Fernández Crisial
@rofc


On Fri, Nov 18, 2011 at 5:36 PM, Travis Crowder
<travis.crowder at spechal.com>wrote:

> Sorry if this is on the ineternet somewhere, but I have yet to find it.
>
> Can Varnish set a cookie?
>
> In example, if a user on a mobile device goes to xyz.com, Varnish sees a
> mobile user agent and redirects them to m.xyz.com via the vcl_error
> section.  Before or after the redirect, can Varnish set a cookie without
> the application doing so?
>
> Thanks,
> Travis
>
> ______________________________**_________________
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
> https://www.varnish-cache.org/**lists/mailman/listinfo/**varnish-misc<https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20111118/f9674d79/attachment-0003.html>


More information about the varnish-misc mailing list