Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2004-07-31
4
Medium Priority
?
218 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 1000 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this. Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it i…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
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.
Suggested Courses

886 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