Varnish bypass return(pass) with php session_id

Reinis Rozitis r at roze.lv
Tue Jun 28 13:00:32 CEST 2016


> 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 




More information about the varnish-misc mailing list