Keeping users logged in across server. (Multiple sites on same server.)

I have several different sites that reside on the same server(virtual sites with the same I.P.). I would like to issue my members one username/password and keep them logged in across all of our sites.
noelhAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
_KM_Connect With a Mentor Commented:
an easy solution would be to place a session ID in the URL's on all of the links, or if you wanted nice neat looking URL's then you could try something like iframes to log in to all servers at the same time, but that wouldn't be too cross-browser compatible
0
 
meet_zorrerCommented:
Hi,

You can use cookies as your i.p doesn't change so the cookies in http://www.server.com will be available in http://virual.server.com

Regards,
Meet
0
 
zac_charlesCommented:
or you could use database sessions
0
 
zac_charlesCommented:
and im not quite sure if setting the cookie server to http://www.server.com would work, http://server.com would work though. I could be wrong...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.