Re: switching between admin areas on two domeins with one login?
| From: | Richard Lynch | Date: | Thu, 23 Mar 2006 23:54:12 +0000 |
| Subject: | Re: switching between admin areas on two domeins with one login? | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-232482@lists.php.net to get a copy of this message | ||
On Thu, March 23, 2006 2:58 pm, Warren Vail wrote:
> 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.
But to transfer the session_id from domain A to domain B, you will
have to pass it in the data...
Actually, if it's all via SSL, you'd be okay -- The session_id you are
transferring would then be safely transmitted.
But if you're not using SSL, it's probably a "no go"
--
Like Music?
http://l-i-e.com/artists.htm