httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Montague <>
Subject Re: [users@httpd] HOW TO HAVE COOKIE FREE DOMAINS
Date Sun, 11 Dec 2011 21:14:56 GMT
On December 11, 2011 5:43 , sadakapache sadak <> 
>                How to set cookies for a domain,is it done via httpd 
> conf file or through code,

Just setting a cookie is not useful unless something uses the cookie.  
You can set a cookie via directives in your httpd configuration file, 
but then what will use those cookies?  Usually cookies are set by the 
same code that uses them (CGIs or other scripts).

> and how to have a cookie-free domain,i have to load my static 
> components on a seperate new domain where there are no cookies is it 
> done via any web server configurations or just by hosting all my 
> static contents in a new domain it can be achieved...

To be cookie-free, do not use any code on your web site that sets 
cookies.  This is the default, especially when you are serving static 

   Mark Montague

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message