Re: sessions vs domain problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux