I would assume that it's the value of the cookie that changes per logged-in user, not the cookie's name. So, if you pass on the name of the cookie rather than the value, you should be okay. Unless your solution for multiple logged-in users requires multiple cookies, in which case you pass on the existence of any.<div><br></div><div>Maybe I'm barking up the wrong tree there, though.<br><br>On Friday, 28 November 2014, Tim Dunphy <<a href="mailto:bluethundr@gmail.com">bluethundr@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Tobias,<div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span style="font-family:arial,sans-serif;font-size:12.7272720336914px">I guess as soon as you pass login, you use different URL as login.php<br></span><span style="font-family:arial,sans-serif;font-size:12.7272720336914px">As you unset you cookie, you backend cannot know that you are logged in.</span><br style="font-family:arial,sans-serif;font-size:12.7272720336914px"><span style="font-family:arial,sans-serif;font-size:12.7272720336914px">A common way is to stop caching if your are logged in.<br></span><span style="font-family:arial,sans-serif;font-size:12.7272720336914px">if(req.http.cookie ~ "my_loggin_cookie"){<br></span><span style="font-family:arial,sans-serif;font-size:12.7272720336914px"> return pass;<br></span><span style="font-family:arial,sans-serif;font-size:12.7272720336914px">}</span></blockquote><div><br></div><div>Ok! Thanks for that tip. I can give that a try. But, wouldn't that require you to know the particular name of the cookie? What if you're dealing with multiple users? Is there a generic you can pass in place of 'my_cookie_login'? </div><div><br></div><div>Thanks</div><div>Tim</div><div><span style="font-family:arial,sans-serif;font-size:12.7272720336914px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:12.7272720336914px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:12.7272720336914px"><br></span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 28, 2014 at 4:09 PM, Tobias Eichelbrönner <span dir="ltr"><<a href="javascript:_e(%7B%7D,'cvml','tobias.eichelbroenner@lamp-solutions.de');" target="_blank">tobias.eichelbroenner@lamp-solutions.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Tim,<br>
<span><br>
> if (req.http.host ~ "^www\.ref\.mydomain\.com$") {<br>
> unset req.http.Cookie;<br>
> }<br>
<br>
</span>I guess as soon as you pass login, you use different URL as login.php<br>
As you unset you cookie, you backend cannot know that you are logged in.<br>
<br>
A common way is to stop caching if your are logged in.<br>
if(req.http.cookie ~ "my_loggin_cookie"){<br>
return pass;<br>
}<br>
<br>
Sincerely,<br>
<br>
Tobias<br>
<br>
<br>
--<br>
LAMP solutions GmbH<br>
Gostenhofer Hauptstrasse 35<br>
90443 Nuernberg<br>
<br>
Amtsgericht Nuernberg: HRB 22366<br>
Geschaeftsfuehrer: Heiko Schubert<br>
<br>
Es gelten unsere allgemeinen Geschaeftsbedingungen.<br>
<a href="http://www.lamp-solutions.de/agbs/" target="_blank">http://www.lamp-solutions.de/agbs/</a><br>
<br>
Telefon : 0911 / 376 516 0<br>
Fax : 0911 / 376 516 11<br>
E-Mail : <a href="javascript:_e(%7B%7D,'cvml','support@lamp-solutions.de');" target="_blank">support@lamp-solutions.de</a><br>
Web : <a href="http://www.lamp-solutions.de" target="_blank">www.lamp-solutions.de</a><br>
Facebook : <a href="http://www.facebook.com/LAMPsolutions" target="_blank">http://www.facebook.com/LAMPsolutions</a><br>
Twitter : <a href="http://twitter.com/#!/lampsolutions" target="_blank">http://twitter.com/#!/lampsolutions</a><br>
<br>
_______________________________________________<br>
varnish-misc mailing list<br>
<a href="javascript:_e(%7B%7D,'cvml','varnish-misc@varnish-cache.org');" target="_blank">varnish-misc@varnish-cache.org</a><br>
<a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" target="_blank">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div>GPG me!!<br><br>gpg --keyserver <a href="http://pool.sks-keyservers.net" target="_blank">pool.sks-keyservers.net</a> --recv-keys F186197B<br><br></div>
</div>
</blockquote></div><br><br>-- <br><br>