Log in

View Full Version : hack upgrade : Make cookies work properly with multiple domains


GoTTi
04-28-2004, 03:06 PM
i believe this is what i need:

https://vborg.vbsupport.ru/showthread.php?t=33044

issue is:

say you got www.site.com/.net/.org , and you have the .net and .org point to the .com....well, the problem is when you get to the .com, the cookie is not loading for people because its on the .com only, not the .net or .org.

and in admincp, i can only load 1 cookie domain.

any1 know how to help me out here or if some1 can upgrade this hack i posted above to vb3?

NTLDR
04-28-2004, 04:07 PM
Its exactly the same, except you should use $_SERVER['HTTP_HOST'] and not $HTTP_HOST and $_SERVER['REQUEST_URI'] and not $REQUEST_URI so that it works with register_globals off.