Cookie – Page cache – Different Layouts
-
Hey there.
I want to use page caching. But i can’t. I have a php script that check if user has allowed to set marketing cookies. So after that it allows to load the content. But i set the request in php.
I got this in my code.
$cookie = $_COOKIE[$cookie_name]; if(!empty($cookie)) { // SHOW CONTENT - After User allow over cookie }So my problem is if i use page cache it always shows nothing but the cookie is set.
Thats because i go a cache page with no cookies set – so i need something like cache if cookies XYZ is not set and make a second version if cookie XYZ is set or have value.Best Regards
The topic ‘Cookie – Page cache – Different Layouts’ is closed to new replies.