Re: sessions vs domain problem
| From: | Stut | Date: | Fri, 22 Dec 2006 16:00:50 +0000 |
| Subject: | Re: sessions vs domain problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-246153@lists.php.net to get a copy of this message | ||
Reinhart Viane wrote:
I have the folowing problem : Hosting of my site is at http://www.groep6049.ksjnet.be <http://www.groep6049.ksjnet.be/> My domainname is www.ksachiropoelkapelle.be <http://www.ksachiropoelkapelle.be/> I have forwarded www.ksachiropoelkapelle.be <http://www.ksachiropoelkapelle.be/> towards http://www.groep6049.ksjnet.be/index.php I use cloaked forwarding (so ksachiropoelkapelle stays in the address bar)That usually uses frames which means that...
header("Location: http://www.ksachiropoelkapelle.be/index.php");
is wrong because you need to be redirecting to the cloaked domain not the actual domain. Change this to use $_SERVER['HTTP_HOST'] instead of www.ksachiropelkapelle.be and everything should be fine.
Or do I have to disable the cloaking?Domain cloaking is evil for a variety of reasons. You'd be better off switching to a host that will let you use your domain name. Incidentally, someone else suggested setting the cookie domain. This will not work because security restrictions prevent you from setting cookies on a different primary domain name. -Stut