vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Login redirect wrong url (https://vborg.vbsupport.ru/showthread.php?t=169960)

erikp 02-08-2008 07:55 AM

Login redirect wrong url
 
Hi!

Once I login into my vbulletin board, it says I am logged in successfully but the redirect takes me to an alternative url to my board, which renders the cookies useless. How do I change this?

e.g. I go to community.mycompany.com, login and am redirected to alternativeservername.mycompany.com. How do I tell vbulletin that I need to be redirected to community.mycompany.com?

More specifically, I looked at the code and it is the $vbulletin->options['forumhome'] variable that contains the wrong information. How do I change this thing? Where is it set? Can I override it?

Thanks!!

snakes1100 02-08-2008 10:01 AM

admincp --> Cookies and HTTP Header Options --> cookie domain --> use custom setting

use .mycompany.com

make sure to add the preceeding dot.

erikp 02-08-2008 10:24 AM

thanks for the suggestion,

actually I want to get rid of the second url altogether (I don't just want to allow it, I also don't want any links to show up anywhere)

Secondly, the 2nd name is not of the form xxx.mycompany.com but totally different (eg xx.myothercompany.com)

I tried searching in the sourcecode but I just can't find where that $vbulletin->options['forumhome'] is defined..

snakes1100 02-08-2008 11:18 AM

Provide a link to your site, might help, also set up a test account for use.

erikp 02-08-2008 01:46 PM

At last I found the problem. Due to some complicated proxy problem, the $_SERVER['hostname'] became the second name and that is used in the redirection meganism of vbulletin. Makes me wonder why this hostname is used anyway.... why not make the urls relative?


All times are GMT. The time now is 03:54 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.00925 seconds
  • Memory Usage 1,708KB
  • 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
  • (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