Announcement

Collapse
No announcement yet.

Cross-domain auth with vB tables?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Cross-domain auth with vB tables?

    Hello All,

    I am currently working on a prototype PHP/MySQL web app that is completely unrelated to vB. However, this site I'm creating is to be a sort of "sister site" to the largest forums out there for our hobby... my app is a user-centric database-driven app, and I'm curious about a couple of things...

    1. Am I able to use the vBulletin tables from another domain? For example, my site is http://www.sistersite.com, and I'm trying to use the user tables from http://www.parentsite.com. Two different domain names. Is this possible, and does anyone have any quick code or can you point me to a place that does?

    2. I want to set my site up so that it senses whether or not the users at http://www.parentsite.com have set "always log me in" (you know, the cookie thing), and it automatically logs the into my site as well. Can cookies, or more specifically, can vB's cookies be shared cross-domain in this fashion? What I'm proposing amounts to http://www.sistersite.com checking a cookie from http://www.parentsite.com, and I don't believe that's possible... any other suggestions for this kind of scenario?

    Registration at http://www.parentsite.com is MANDATORY for using my site, so I have no issues with registration or authentication mechanisms... I will be taking it for granted. What I'm more concerned about is being able to share this info cross-domain, and whether or not it's even possible. I wish to retain my own domain and webspace for this app, and If I have to go ahead and keep authentication separately for this site I will. Thanks!

    ...tom

  • #2
    If the script at site B has permissions to access the user table from site A (this is, if the MySQL server allows access), you can of course use it with scripts on both domains.
    And reading cookies from multiple domains is generally not permitted, this is for security reasons.

    Comment


    • #3
      Is that really so easy?

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...
      X