vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Two domains and problems with logging in and out (https://vborg.vbsupport.ru/showthread.php?t=323197)

ZUCCO 08-07-2016 04:30 PM

Two domains and problems with logging in and out
 
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=ad...using+htaccess

Paul M 08-07-2016 07:20 PM

Quote:

Originally Posted by ZUCCO (Post 2574480)
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

Quote:

Originally Posted by Paul M (Post 2574484)
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.


All times are GMT. The time now is 05:13 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00976 seconds
  • Memory Usage 1,718KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete