Solved

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

Posted on 2004-07-31
4
204 Views
Last Modified: 2006-11-17
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.
0
Comment
Question by:noelh
  • 2
4 Comments
 
LVL 4

Expert Comment

by:meet_zorrer
Comment Utility
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
 
LVL 7

Expert Comment

by:zac_charles
Comment Utility
or you could use database sessions
0
 
LVL 7

Expert Comment

by:zac_charles
Comment Utility
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
 
LVL 1

Accepted Solution

by:
_KM_ earned 250 total points
Comment Utility
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

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
This article will explain how to display the first page of your Microsoft Word documents (e.g. .doc, .docx, etc...) as images in a web page programatically. I have scoured the web on a way to do this unsuccessfully. The goal is to produce something …
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to count occurrences of each item in an array.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now