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)

thincom2000 03-27-2008 12:08 PM

If the forum also doesn't physically exist until a subfolder, you should include it in the settings. Say: subdomain.site1.com/forum

Otherwise, everything looks like it's correct and functioning properly.

dfc005 03-27-2008 08:21 PM

Nope, the forum doesn't sit in any subdirectory. Just in the root of those subdomains.

Dammit, was hope I was missing something really simple and easy and it would fix all my problems.

dfc005 03-27-2008 10:10 PM

OK, I tried popping up the src for the fake "image" into a new window, to prove to myself those files were working and setting cookies and sessions. If I do this, it works perfectly in IE and Firefox. Not exactly a perfect solution but proves that the idea does work.

I then also moved the fake "images" to the top of the STANDARD_REDIRECT template so they got loaded first rather than last. Seemed to help my Firefox problem with only a couple of the domains picking up the cookie/session.

So still, my only problem is in IE. It just doesn't seem to work at all. I'm using IE7 and just stumped.

thincom2000 03-28-2008 12:06 AM

I should be able to update the mod with some javascript that will wait until all fake images are loaded before executing the redirect, which could also help with your IE problem considering everything else seems to be correct.

dfc005 03-28-2008 12:12 AM

That would be fantastic if you could.

Is it possible the IE problem is actually cross domain policies and the like?

thincom2000 03-28-2008 02:50 AM

It works in IE7 on my test site, so I doubt that.

dfc005 03-30-2008 09:44 PM

OK, here's my latest findings.... It was cross domain privacy policies for me. What do you have your privacy set to in IE?

I set the following at the beginning of the ces_cookies.php and that has fixed my problem for IE. Works like a charm now.

PHP Code:

header('P3P:CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"'); 

Found another problem though. And not sure if it's your script that's doing it or not! It seems when I try and login without checking "Remeber me?", it logs into all sites except the one I'm actually logging into? Any ideas on that one?

thincom2000 03-31-2008 04:00 PM

Interesting. I would like to read a little more about the header you have posted. Can you provide a documentation link for your findings?

It's possible that this mod is causing the cookies not to be set, so I guess I'll have to remove the efficiency check I added, which prevented the mod from adding an image for the current domain (since the originating script should have taken care of those cookies).

dfc005 03-31-2008 07:03 PM

Sure mate, here's a few links. They all refer to cookies not being set in iframes but I assume that the fake "image" would have the same problem.

http://aspnetresources.com/blog/fram...d_cookies.aspx
http://gathadams.com/2007/06/25/how-...-applications/
http://james.jamesandkristin.net/200...rnet-explorer/

dfc005 04-02-2008 10:46 AM

Any more thoughts mate? What was your privacy set to in IE?


All times are GMT. The time now is 03:20 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.01265 seconds
  • Memory Usage 1,735KB
  • 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_php_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