razvanstanga / varnish-caching-wordpress-plugin

Varnish Cache Wordpress implementation
18 stars 5 forks source link

Vcaching generating PHP sessions when using domain mapping in a multisite network #9

Open ahmed-sigmalux opened 7 years ago

ahmed-sigmalux commented 7 years ago

We have a multisite setup using domain mapping for the subsites. For example, our main domain is mysite.com while the subsites in the network are mysite2.com, mysite3.com, mysite4.com, etc.

In this setup, vcaching does not generate PHP sessions on the main domain of mysite.com, but it DOES generate PHP sessions on all of the domain mapped subsites. These PHP sessions appear on all pages, regardless of logged in status.