PDA

View Full Version : Two domains and problems with logging in and out


ZUCCO
08-07-2016, 04:30 PM
Hi,I have 2 domains poiting to my website

forofobias.com
forofobias.net

When I enter forofobias.com and log in I get this error Invalid Redirect URL (http://forofobias.com/forum.php)

Then I click on my logo to go back to home page and I'm logged in.

Also if I log in forofobias.net and then change it to forofobias.com I appear as not logged in.

Please help, thank you :D

Seven Skins
08-07-2016, 07:13 PM
Check the setting in your adminCP > settings > options > Site Name / URL / Contact Details

What ever the forum url is there use the same url to login.

You should also think of redirecting users to www or non www url. Google search https://www.google.co.uk/search?q=add+www+to+url+using+htaccess

Paul M
08-07-2016, 07:20 PM
Also if I log in forofobias.net and then change it to forofobias.com I appear as not logged in.


Thats entirely correct, cookies are linked to domains, so if login to one domain, then change to another, your cookie wont be valid, and you wont be logged in.

ZUCCO
08-08-2016, 12:02 AM
Thats entirely correct, cookies are linked to domains, so if login to one domain, then change to another, your cookie wont be valid, and you wont be logged in.

Can I fix it?

Paul M
08-08-2016, 09:07 AM
No, thats how cookies are designed to work. The only "fix" is to use just one domain.