Re: switching between admin areas on two domeins with one login?
| From: | Warren Vail | Date: | Thu, 23 Mar 2006 20:58:45 +0000 |
| Subject: | Re: switching between admin areas on two domeins with one login? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-232476@lists.php.net to get a copy of this message | ||
I think the key to your problem is finding a way that the two domains can share information, do these domains have access to the same physical disk space, or a common database? You can use the your own save handler routines to give them both access to the same area (database may work the best), so that when they create, write, and retrieve session data, both websites are using the same session data.
http://www.php.net/manual/en/function.session-set-save-handler.php
If they are in the same "virtual" server machine, you may be able to do something with a common file area, but this could prove risky, security wise, I would suggest the common database approach. A lot of good books have writeups on how to change these routines to store session data in a mysql database.
HTH
Warren
At 12:34 PM 3/23/2006, afan@afan.net wrote:
Hi to all, have two domains and each domain has it's own admin registered areas. Have to allow people who registered to change domains and areas without login again? On reg. areas, after login, create sess_id to check if visitor is logged in, but sess_ids on domains are different and can't compare them? Thoughts? Thanks! -afan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php