New in CWP Edge-LatestFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers, and CWP Cage gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

Varnish Cache

Started by Aalesund, November 09, 2019, 05:43:09 PM

Previous topic - Next topic

Aalesund

Hi, I have installed "Nginx + Varnish + Apache" and manually activated Varnish for  my domain.
But I have a problem. Now varnish just cached all content including sessions and cookies.
For example:
I have 2 templates (desktop + mobile). When someone uses Mobile then another user uses Desktop device it loads Mobile template on desktops because of cookies and user sessions.
But the the very bad situation is when some user is logged, then another user loads the home page and he enter in other accounts.

So, how to disable caching sessions and cookies in Varnish?