Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-23-2005, 03:58 PM
CTM's Avatar
CTM CTM is offline
 
Join Date: Dec 2003
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Multiple Domain Cookies

Is it possible to set my cookies for multiple domains? Or would I have to custom script that?

E.g. :

I have domain1.com and domain2.com

I want it so when you do www.domain1.com/forums/ it uses the same cookies as www.domain2.com/forums/ ( domain1 being an parked domain )
Reply With Quote
  #2  
Old 03-24-2005, 02:13 AM
jbischke jbischke is offline
 
Join Date: Aug 2004
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey CTM. I'd like to know the very same thing. I am trying to "split" my vBulletin forums so that a couple of categories are under one domain and a couple of categories are listed under another. Although I've seen several discussions related to this here, there doesn't seem to be a definitive answer.

Anyone have any ideas?
Reply With Quote
  #3  
Old 03-24-2005, 02:21 AM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by CTM
Is it possible to set my cookies for multiple domains? Or would I have to custom script that?

E.g. :

I have domain1.com and domain2.com

I want it so when you do www.domain1.com/forums/ it uses the same cookies as www.domain2.com/forums/ ( domain1 being an parked domain )
Nope, cookies are domain specific
Reply With Quote
  #4  
Old 03-24-2005, 02:29 AM
jbischke jbischke is offline
 
Join Date: Aug 2004
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, so is there a way to accomplish the following:

www.domain1.com/forum1
www.domain2.com/forum2

User logs into forum1 and does not need to have a separate user account to log in to forum2.

Ideally, this would be seamless in the sense that a user logged in to one set of forums would not need to "re-log-in" to the other set of forums. However, I'm cool with it being a bit of a hassle as long as they don't actually have to have separate user accounts.

Any ideas?
Reply With Quote
  #5  
Old 03-24-2005, 09:53 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Since the login is cookie based, this will not (without some major modification) work either IMHO.

But maybe someone got a briljant idea.
Reply With Quote
  #6  
Old 03-24-2005, 01:05 PM
SteveC SteveC is offline
 
Join Date: Mar 2005
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm trying to do something very similar. My plan is to use a script to grab the login info, and pass it to the other site and use a script there to autolog them in. You can get some measure of security by encrypting the header info that's passed and having the 2nd site only accept a link from the first.

HOWEVER, I'm having one strange problem. With Certain mac users, I can't grab their user info. I've tried to grab both the userid var and the cookie for bbuserid

Here's a test script I'm using.

<?php
$bbuserid = intval($_COOKIE[bbuserid]);
echo "bbuid is ";
echo $bbuserid;
$userid=$userid;
echo "uid= ";
echo $userid
?>

I put this script in the BBS directory and made it accessible from a link in a post. For most users it properly displays their id. But from some, even though they are logged in and have cookies enabled, it gives null values.

What am I doing wrong?
Reply With Quote
  #7  
Old 03-25-2005, 02:41 AM
CTM's Avatar
CTM CTM is offline
 
Join Date: Dec 2003
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No idea. I was asking if anyone could do it
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:26 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.04369 seconds
  • Memory Usage 2,215KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete