Pass Sessions from domain to subdomain

Discussion in 'Apache' started by sponge.nika, Jun 16, 2011.

  1. #1
    How can I pass session from localhost to subdomain.localhost and vice versa.

    The system works like this.
    When user logs in to the site (localhost) and goes to subdomain.localhost I need that the system recognize the user.
     
    sponge.nika, Jun 16, 2011 IP
  2. ntomsheck

    ntomsheck Peon

    Messages:
    87
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Use cookies, or a hashed string in the URL. Store the hashed string (we'll say ABCD1234) in the database, then redirect the user to subdomain.localhost/?string=ABCD1234 and have it call the database again with the IP address, etc etc.
     
    ntomsheck, Jun 17, 2011 IP