Question

What's the easiest way to set up a cookieless domain on a WHM/Cpanel server?

And please don't answer "Don't set a cookie on your domain then", I want to ensure that even if something on the server tries to set a cookie, it won't work. If this feature is possible anyways... Thank you.

Was it helpful?

Solution

cookies have nothing to do with domains (in terms of the question u have asked). u can even set a cookie on an ip based page like http://10.0.0.1/ .. cookies are sent by the scripts on ur site and are understood by the browser. so "no" this cant be done on domain level .. this needs to be done on script/code level .. whm and cpanel have nothing to do with it either.

if u have dynamic content on ur site , the chances are u cant do much about it , contact ur developer for this .. but if u have static html pages, they generally cant send cookies.

OTHER TIPS

You have to create a subdomain, for example static.domain.com, which will be handled by a virtual host on apache. You have to you use the <Directory> group while creating your new virtual host. The server name and server alias should be the domain name you created and you should include in the virtual host <Directory> directive group the following lines that disable the cookies:

RequestHeader unset Cookie

Header unset Set-Cookie

Maybe this helps

Cookieless

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top