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.
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.