Varnish bypass return(pass) with php session_id

Christian Cantinelli morphey at morphey.org
Tue Jun 28 14:02:17 CEST 2016


Hi  @Reinis,

tnks a lot.
indeed it works perfectly.
I see the configuration again.

Thanks again.

Chris

Unix System Administrator - Network Administrator
Programmer - Webdesigner - Webmaster

Il 28/06/2016 13:00, Reinis Rozitis ha scritto:
>> 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