Skip to content
Advertisement

Tag: litespeed

Get PHP $_SESSION data in .htaccess for LiteSpeed cache

I need to send data from $_SESSION from PHP file to .htaccess for setup Vary variable for setting LiteSpeed cache. PHP script example: .htaccess example I already tried these ways: Via cookies. I set PHP variable in the cookies and get it from there in .htaccess via “RewriteCond %{HTTP_COOKIE} (.*) [NC]”. But I will have also private data which I

Advertisement