vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   multi-domain cookies (https://vborg.vbsupport.ru/showthread.php?t=39242)

DarkReaper 05-30-2002 05:32 PM

multi-domain cookies
 
I'm trying to get the cookies vB sets to apply to all 3 domains my website uses(so you could go to forums.anydomain.com and be logged in) but it's not working quite right. In /admin/functions.php I changed this:

PHP Code:

  if ($cookiedomain) {
    
setcookie($name$value$expire$cookiepath$cookiedomain$secure);
  } else {
    
setcookie($name$value$expire$cookiepath''$secure);
  } 

To this:

PHP Code:

  setcookie($name$value$expire$cookiepath'.seriouscommunity.com'$secure);
  
setcookie($name$value$expire$cookiepath'.seriouszone.com'$secure);
  
setcookie($name$value$expire$cookiepath'.seriousengine.com'$secure); 

It didn't work though. What am I doing wrong?

DarkReaper 05-31-2002 01:21 AM

bump

Admin 05-31-2002 02:05 PM

You can't have multi-domain cookies, it's impossible AFAIK.

scsa20 05-31-2002 09:17 PM

go to your vBulletin options and go look for HTTP Headers and output and then look for Cookie Domain. in that box, add .YourURL.com and replace the code you replaced back to the old code.

==============================================
oh, I see what your trying to do, you can't do that, you can only do it with subdomains :rolleyes:
==============================================

DarkReaper 06-01-2002 01:25 AM

D'oh! There must be SOME way to achive what I'm trying to do if not through multi-domain cookies...

Birdie501 06-01-2002 09:54 AM

isnĀ“t it possible to set 3 different cookies in one step? So if the user visit domain1.com automatically three cookies will be set with all the domains i need?

so if the user comes back but visit another domain it should work?

Admin 06-01-2002 11:13 AM

You cannot set a cookie for a different domain, Birdie. Only for sub-domains.


All times are GMT. The time now is 12:32 AM.

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.01059 seconds
  • Memory Usage 1,725KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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