PDA

View Full Version : Frame Redirection Cookie Issues


Mayonati
05-26-09, 01:51 AM
Hi,
I have web hosting at a hosting company, and I decided to create a forum and get a new domain for it. I bought the domain from 1&1 (www.oneandone.co.uk/), and set up redirection to point it to my existing website - i.e. www.newdomain.com pointing at www.example.com/Forum where example.com would be my existing domain (with my hosting company), /Forum is from the root directory (public_html), and www.newdomain.com is the new domain that I just purchased.

1&1 provide two different types of redirect - HTTP Redirect and Frame Redirect. When I use HTTP, everything works fine, including cookie persistancy, but the URL changes from www.newdomain.com to newdomain.example.com (The subdomain that I am pointing to).

If I use Frame Redirect, it keeps the URL masking (the URL stays as www.newdomain.com in the address bar), but cookies are no longer persistant; whenever I navigate to a different page, or open in a new window, I have to log in again, although it stays persistant while I browse the board - i.e. I can navigate to a forum, create a post, etc and stay logged in. But if I navigate to another website and then back, I get logged out.

Also interesting is the apparent change in cookie domain - when I was using HTTP redirect, I was logged in as the admin. When I changed to Frame redirect, it logged me out so I logged in as a test user. But when I switched back to HTTP redirect, I was still logged in as admin!

I know that I could change the cookie domain on the forum (PHPBB) to www.newdomain.com, but the problem is that I have both newdomain.co.uk and newdomain.net, so if I set one of them, the other one would cause problems.

So my question is this: How can I set up the redirection from 1&1 so that URL masking remains in place (the address shows as "www.newdomain.co.uk" or "www.newdomain.net"), but cookies remain persistant properly? Bear in mind that I will be redirecting more than one different domain to the hosting, and my hosting company is different to 1&1.

Thanks for any advice! :D

joedymueller
09-04-09, 08:39 AM
reported for the 3rd time.

thideras
09-04-09, 09:15 AM
reported for the 3rd time.I'm confused, I don't see how this is spam. Looks like a legit question to me.

SuperMiguel
09-04-09, 09:19 AM
I'm confused, I don't see how this is spam. Looks like a legit question to me.

+1

Mayonati
09-17-09, 02:08 AM
thideras - There was a spammy post posted after mine recently (the thread went for ages without having a reply and then the spam bumped it). I assume the spammer was banned and his posts deleted, making it look like joedymueller was referring to me :).

muddocktor
09-17-09, 08:23 AM
thideras - There was a spammy post posted after mine recently (the thread went for ages without having a reply and then the spam bumped it). I assume the spammer was banned and his posts deleted, making it look like joedymueller was referring to me :).

Yes, that is exactly what happened. No harm, no foul.

mudd

thideras
09-17-09, 03:25 PM
Gotcha, makes more sense then.

UnseenMenace
09-17-09, 03:43 PM
your approaching the issue incorrectly I believe the issue is not with forwarding, you need to configure phpBB to share the session cookies across multiple domains.