On Thu, May 15, 2008 at 8:27 AM, Reid Priedhorsky <reid(a)umn.edu> wrote:
However, we would like to take this to the next level
and have the two
applications share sessions, so logging into one automatically logs into
the other, and the same for logout.
Can this be done? What's the easiest way to do it?
I implemented this for Wikimedia's CentralAuth AuthPlugin. I used the
AutoAuthenticate (recently renamed to UserLoadFromSession),
UserLoginComplete and UserLogout hooks to achieve this. You can see
the code in CentralAuthHooks.php, on the svn repository under
mediawiki/trunk/extensions/CentralAuth/
--
Andrew Garrett