If the request passes for varnish, PHP creates a session for each call without maintaining the previous.

I would try to start with removing (commenting out) all the unset beresp.http.set-cookie; lines in your varnish config.

For example:

..
if ( (!(bereq.url ~ "(wp-(login|admin)|login)")) ||(bereq.method == "GET") ) {
               unset beresp.http.set-cookie;
...

You delete the cookie comming from backend for any GET request so the php session can't be maintained.


rr

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

Reply via email to