Re: switching between admin areas on two domeins with one login?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxx 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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux