Search code examples
phpwordpresslampmediawiki

Wordpress MediaWiki Cookie Integration


I have my Wordpress install and MediaWiki sharing the same login information. Unfortunately, users need to log into both separately, but at least they use the same credentials.

What I would like to do is cause a successful login on the Wordpress blog to also cause a login for MediaWiki (ideally both directions). There are two ways this could happen:

  1. Logging in causes a login on the other application (writes the cookie and creates the session in the DB)
  2. Accessing an application checks for the cookie of the other and then automatically logs in.

Since the usernames are shared it seems like the latter should be pretty easy to do. Any tips would be great.


Solution

  • They both support OpenId now.

    There are probably other options for using OpenId, but I think that is the best solution available.