<div dir="ltr"><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-size:12.8000001907349px">maybe you have a unset req.http.Cookie; that shouldn't be called when a user is logged in/going to login.</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">Maybe try to find a way to always call (pass) when a user is logged in. I think you 'd be better of not caching when a user is logged in.<br></span><span style="font-size:12.8000001907349px">Of course we don't know the use case of your mediawiki, nor do I know mediawiki myself . </span></blockquote><div><br></div>That was it! I did in fact have <span style="font-size:12.8000001907349px"> unset req.http.Cookie; set earlier in my VCL! So now I can log in. Good stuff! However if I disable unset req.http.Cookie; altogether my site does not cache at all. Is there any way to allow cookies just for the login page in the following section?</span><br><br><div><span style="font-size:12.8000001907349px"> if ( req.http.host == "<a href="http://wiki.example.com">wiki.example.com</a>" && req.url ~ "^/(index\.php)?\?title=Special:UserLogin(.*)" ) {</span></div><div><span style="font-size:12.8000001907349px"> return (pass) ;</span></div><div><span style="font-size:12.8000001907349px"> }<br><br>Thanks,</span></div><div><span style="font-size:12.8000001907349px">TIm</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 17, 2015 at 11:27 AM, Balder VC <span dir="ltr"><<a href="mailto:lists@redlab.be" target="_blank">lists@redlab.be</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"><span class="">
On 08/17/2015 05:02 PM, Tim Dunphy wrote:<br>
</span><span style="white-space:pre-wrap"><span class=""><br>
><br>
> So I think I need to find a way to preserve the cookie that's
being used to identify the user at the end of the URL, which I'm
pretty sure will be a random string. Can you help me find a way to
do this?<br>
><br>
> Thanks,<br>
> Tim<br>
><br></span>
> On Mon, Aug 17, 2015 at 2:24 AM, Geoff Simmons
<<a href="mailto:geoff@uplex.de" target="_blank">geoff@uplex.de</a> <a href="mailto:geoff@uplex.de" target="_blank"><mailto:geoff@uplex.de></a>> wrote:<br>
></span><br>
<br>
<br>
maybe you have a unset req.http.Cookie; that shouldn't be called
when a user is logged in/going to login.<br>
<br>
Maybe try to find a way to always call (pass) when a user is logged
in. I think you 'd be better of not caching when a user is logged
in.<br>
Of course we don't know the use case of your mediawiki, nor do I
know mediawiki myself . <br>
<br>
<br>
Regards<span class="HOEnZb"><font color="#888888"><br>
Balder<br>
</font></span></div>
<br>_______________________________________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a><br>
<a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" rel="noreferrer" 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 class="gmail_signature">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>