Hi David,

We use a javascript cookie to display the user's first name in the header of 
our site. Our site uses Varnish to cache all pages except a login page, where 
the cookie is set.

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 entirely and then just use Javascript to check for the cookie and write out the data. If there is no cookie, it shows "Login".

Rich

_______________________________________________
varnish-misc mailing list
[email protected]
http://lists.varnish-cache.org/mailman/listinfo/varnish-misc

Reply via email to