Re: User Authentication across multiple server
| From: | Michael A. Peters | Date: | Fri, 06 Mar 2009 09:31:27 +0000 |
| Subject: | Re: User Authentication across multiple server | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-289441@lists.php.net to get a copy of this message | ||
Edmund Hertle wrote:
Hey, I've got 2 server, both having the same authentication scripts and using the same database. My problems are: 1.: User logs in on server1 -> trys to use a part of the site which is physically located on server2 -> has to login again on server2 2.: There is a wiki on server2, which also depends on the same user-database-table. Is there a way to login the user automatically to that wiki? The only method which possibly could work and came to my mind was using somehow $_GET parameter for username and password (encrypted). Thoughts? -eddyDo you use the database for your session management? If you do, since both servers talk to the same database, it should be easy. ini_set("session.cookie_domain",".yourdomain.org"); Any server on your domain will be able to read the session cookie, and if your sessions are database driven, authenticate the session ID.