Cookies - set on non-cached pages, read on all pages
richard.chiswell at mangahigh.com
Tue Apr 20 16:41:16 CEST 2010
> What we need to be able to do is set the cookie once (name='David') on the login page so that we can display 'Hello David' on all other pages.
> For a given cached page, if the user's browser already has a cookie saved, then we display its value ('Hello David'). If no cookie is found then we display 'Login'.
We've done something similar - just get Varnish to ignore the cookie
out the data. If there is no cookie, it shows "Login".
More information about the varnish-misc