Accessing Amember Session Data

Discussion in 'Integration' started by behaviourneeds, Dec 2, 2011.

  1. behaviourneeds

    behaviourneeds Member

    Joined:
    Jan 26, 2010
    Messages:
    47
    Hi.

    I know that it is posible to access amember sessions if I am on the same domain but is it posible to get the logged in status if I am on another domain...

    I have www.example.com with a login box which accesses
    www.example2.com/member and completes the logon and then loops back round to www.example.com all of my protected content is delivered through www.example2.com/member/content is it posible to get the logged in status and display it on www.example.com ?

    I realise that session data is not available cross domain but I wonder is there is anything I can do
    I hope that has made some sense.

    Chris
  2. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
  3. behaviourneeds

    behaviourneeds Member

    Joined:
    Jan 26, 2010
    Messages:
    47
    Hi Alex.

    If I use an Iframe am I able to make use of the amember session data else where within the page (outside of the Iframe) I want to be able to have different links in place depending if they are signed in or not etc.

    Thanks
    Chris
  4. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Chris,
    No. You can't get session data on other domain name. Cookies can't be read from different domain name so you can't access session.

Share This Page