Sharing WordPress session cookie with MediaWiki

This is very similar to the question posted last September , but I haven't found any working solutions for it (and I don't know enough about cookie session to do it myself). If I have a user authenticated to WordPress, how can I read this session cookie from MediaWiki so that the user then has permission to edit the wiki? I would like WordPress to handle all user data, so the login always happens in WordPress.

+2


source to share


1 answer


A bit late answer and it might not be the perfect solution you're looking for, but I've been using AuthWordpress.php for the past 9 months or so without any problem. Although WP login sessions are not persisted when navigating to Wiki, WP users are fully authenticated when logged in from the end of MediaWiki. This way you just log into the wiki with your WP credentials.

Seems like the best way to get it is here: http://wordpress-malagasy.googlecode.com/svn/wp/misc/wordpress-mediawiki/AuthWordpress.php . And just follow the directions in the comment above.



Hope it helps!

+2


source







All Articles