vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Saving session across domains (https://vborg.vbsupport.ru/showthread.php?t=313137)

RisingGlow 07-22-2014 02:16 AM

Saving session across domains
 
I'm looking for a way to save a vbulletin session across domains.
The issue I have is my first domain, site1.com runs everything on the forum.
I want to include another domain site2.com that handles custom forum pages (like a shop plugin, arcade, etc) which are all just plugins to vbulletin.
the real URL to the shop plugin is something like site1.com/shop (and everything else following it for further pages)
but I want site2.com to basically be site1.com/shop

If it makes any difference, the registration/login will still be site1.com on the shop/arcade section, it's just if you'd like to participate in site2.com, you'd need to login at site1.com. If that makes any sense..

kh99 07-23-2014 10:05 AM

You might try experimenting with putting the sessionid on the urls (which is done automatically if a user has cookies disabled). There's a function $vbulletin->session->set_session_visibility($invisible) which is called in init.php to show or hide the sessionid depending on a few conditions.

I haven't tried this and I'm not sure why sessionids are normally hidden, except that it makes the urls more readable, so maybe there's an issue with doing this that I don't understand.

Dead Eddie 07-23-2014 11:12 PM

Quote:

Originally Posted by kh99 (Post 2507902)
I haven't tried this and I'm not sure why sessionids are normally hidden, except that it makes the urls more readable, so maybe there's an issue with doing this that I don't understand.

Person A posts a link that includes his session ID
Person B follows that link while Person A's session is still active
Person B takes over Person A's session.

I used to work for an ecommerce company whose shopping cart/session ID was passed by a URL parameter. When a link went viral, it was not pretty.


All times are GMT. The time now is 11:28 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.01171 seconds
  • Memory Usage 1,709KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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