SMF - Cross-domain integration

Discussion in 'Integration' started by onlinedrummer, Aug 19, 2009.

  1. onlinedrummer

    onlinedrummer aMember Pro Customer

    Joined:
    Aug 10, 2009
    Messages:
    2
    The SMF mod works exactly as supposed to: the member is created an account on SMF on signup with amember. On login, a cookie with the correct name is set as well as all other session IDs...

    However, because the SMF forum is on another domain, it does not recognize the cookie from the amember domain. It's looking for the cookie from the SMF forum domain.

    Anyone know of a simple workaround for this? I would like it to remain a single login across domains.
  2. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    on a different domain or a subdomain?

    if it is on a different domain, there is not much (short of a major hack) that you can do. Browser security prevents setting and using cookies across different domains to prevent scripting exploits.
  3. onlinedrummer

    onlinedrummer aMember Pro Customer

    Joined:
    Aug 10, 2009
    Messages:
    2
    Yeah, it's a different domain altogether. I suppose something like a second redirect on login that would set the cookie on the 2nd domain and then redirect back to the first domain. I don't think that would look to clean, though.

Share This Page