Varnish Auth Sessions (vBulletin)
Scott McCullough
zredsox at gmail.com
Thu Jan 8 02:56:57 CET 2009
I ended up resolving my own issue with a little help from the irc channel.
In case anyone else is looking for a duck tape solution...
I created my own cookie (auth_user) that executes in the login.php under the
"start do login" post request
$value = 'access';
setcookie("auth_user", $value);
setcookie("auth_user", $value, time()+86400);
setcookie("auth_user", $value, time()+86400, "/", ".mysite.com", 1);
and then in default.vcl:
sub vcl_recv {
if (req.http.cookie && req.http.cookie ~ "auth_user") {
pass;
}
}
sub vcl_hash {
if (req.http.cookie && req.http.cookie ~ "auth_user") { set req.hash +=
"auth"; }
set req.hash += req.url;
hash;
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20090107/e815956a/attachment-0001.html>
More information about the varnish-misc
mailing list