|P is for Practical|
Having a cookie domainby CodeJunkie (Monk)
|on Jun 04, 2003 at 11:26 UTC||Need Help??|
CodeJunkie has asked for the wisdom of the Perl Monks concerning the following question:
I have 2 websites, my main site is http://www.mysite.com/ and my new site is http://www.newmysite.com. However newmysite.com is actually hosted at http://www.mysite.com/newmysite/. I have just asked my domain registar to forward to this new location and put in a frame so that it looks like it's own site, but I dont have to buy more dedicated webspace.
On my new website I have a log in page that lets people log into the website, however the domain cookie thing is giving me problems. If I look at the site from:
It works fine, but I can't login when I go to www.mynewsite.com. I think this is because the domain is specified at .mysite.com as opposed to .newmysite.com. But it still doesn't work when I change the code to domain=>'.newmysite.com'.
I hope that all makes sense to everyone, it's not really that complicated, but I'm not sure I've explained it too well