vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Setting login cookies for multiple domains (https://vborg.vbsupport.ru/showthread.php?t=60649)

stevensteven 01-23-2004 11:38 PM

Setting login cookies for multiple domains
 
If you check out www.votewatch.us you will see that we inserted some PHP to drive the vB login from outside the /forum directory. Votewatch uses several different domains, all pointing to various directories within the root server. For example, we establish a new set of pages each year under a new domain (ie. votewatch2004.org).

Even though a user may be utilizing the same vB instance, they can pass from one domain to another. If they have logged into the first domain, but have not logged into the second, it then can appear to the user that they have been logged out of the system.

As a possible solution, we are exploring the possibility of setting multiple cookies upon login, one for each of the domains in the votewatch family. So that once they logged in to one domain the user is logged in to all of the domains.

I'd appreciate if if I could receive some feedback as to the feasibility of this approach.

Thanks

Steven

bjornstrom 02-22-2004 01:28 PM

Installation
============

Replace "www.vbulletin.org" with your main hostname.

Open config.php
Place this line of code on line 2 - i.e. the line after "<php":

if ($HTTP_HOST!="www.vbulletin.org") { header("Location: http://www.vbulletin.org".$REQUEST_URI); exit; }

Close and upload config.php

And hey presto, it's done.
Visitors to any page on http://vbulletin.org will be magically transformed to that same page on http://www.vbulletin.org


All times are GMT. The time now is 04:42 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.00983 seconds
  • Memory Usage 1,710KB
  • 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
  • (2)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