Solved

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

Posted on 2004-07-31
4
211 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 4

Expert Comment

by:meet_zorrer
ID: 11687089
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
ID: 11687140
or you could use database sessions
0
 
LVL 7

Expert Comment

by:zac_charles
ID: 11687144
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
ID: 11692927
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

Get HTML5 Certified

Want to be a web developer? You'll need to know HTML. Prepare for HTML5 certification by enrolling in July's Course of the Month! It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

632 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