Solved

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

Posted on 2004-07-31
4
206 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
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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to count in a table in php 22 36
How to properly use session_regenerate_id when user logs in 7 42
Wordpress Taxonomy 2 29
Is there a simpler dropbox system? 10 24
This article discusses four methods for overlaying images in a container on a web page
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

821 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