vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Miscellaneous Hacks - CES Cookie Cutter - Share Cookies Between Domains (https://vborg.vbsupport.ru/showthread.php?t=139272)

kaplanassist 09-12-2008 12:28 AM

I never set the debug mode. I will turn it on and see if it works.

The url was incorrect that I put in there if you are stating that it needs a / for it to work.
This is my url: kaplanstudentforums.com/studentforums.php

thincom2000 09-12-2008 03:26 AM

This is my settings (working fine):
crackedeggstudios.net
crackedeggstudios.com

kaplanassist 09-13-2008 03:44 PM

Now I can browse with each account and the cookie issue is fixed. It shows the name of each domain name in the top browser. ie: www.kaplanforums.com does not redirect. By simply using the one mod listed above with a couple of tweek settings in vbulletin. My problem was this setting which I enabled and everything is now working correctly.


Add Standard HTTP Headers
This option does not work with some combinations of web server, so it is off by default. However, some IIS setups may need it turned on.

It will send the 200 OK HTTP headers if turned on.



I also on the setting left blank

This option sets the domain on which the cookie is active. The most common reason to change this setting is that you have two different urls to your forum, i.e. example.com and forums.example.com. To allow users to stay logged into the forum if they visit via either url, you would set this to .example.com (note the domain begins with a dot.

also the domains that I entered into it needed to end with a /

NemoTech 10-08-2008 05:35 PM

Oh this works absolutely pefectly for me. Thanks so much.

kermit2 01-16-2009 10:20 PM

I'm having some strange problems with this in IE 8. IE 8 accepts the cookies for the 'extra' domains, but not for the domain from which the user is logging in - so after the 'thank you for logging in, please wait while you are redirected' message, the user is returned to the forum home page not logged in.

Anyone else experienced this (seems to be only IE 8) or know a fix? If not I'll do a follow up post if and when I solve it.

Great plugin by the way, very useful

kermit2 01-16-2009 11:26 PM

Problem solved (sort of):

Code:

        // we want all subdomains, take everything after the first .
        if (substr_count($_SERVER['HTTP_HOST'], '.') > 1)
        {
                $vbulletin->options['cookiedomain'] = substr($_SERVER['HTTP_HOST'], intval(strpos($_SERVER['HTTP_HOST'], '.')));
        }
        else
        {
                $vbulletin->options['cookiedomain'] = $_SERVER['HTTP_HOST'];
        }

(the init_startup hook). This assumes your domain name only has one period in it, but if you have something like example.co.uk, the cookie ends up getting set for .co.uk (which obviously isn't a good idea, since anyone else on a .co.uk would be able to read it).

The second problem I didn't fully figure out, but it seems that if you check the 'remember me' box, IE 8 happily keeps you logged in to the main domain, so for the moment I've just edited my templates so that this is checked by default

thincom2000 01-20-2009 11:18 AM

This is indeed a problem. I have noticed that Firefox also shares your "Remember me" issue.

GlitterKill 01-25-2009 11:47 PM

Does this work with VB 3.8?

Pipo123 01-27-2009 02:58 PM

Quote:

Originally Posted by scoutz (Post 1376510)
nevermind fixed something myself, working now! :)

What did you fix?

Pipo123 01-27-2009 03:24 PM

The cookie cutter fails to load the init.php properly but loads the other two requires:
require_once('./includes/functions_login.php');
require_once('./includes/adminfunctions.php');

It does load init.php but exits/crashes.


All times are GMT. The time now is 10:24 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.02030 seconds
  • Memory Usage 1,740KB
  • 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)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete