Here is the situation:
I have a mediawiki installation, and a few additional server-side scripts that require more resources and were already written in a different language (python). The python code will be very loosely coupled with the mediawiki code (only called by clicking on a link here or there)
What I would like is that when a GET or POST command is sent to the server to execute a python script, I would like to check to see if a user is already logged in to mediawiki. If not, I would like to just redirect them to the mediawiki login page.
Any ideas? There are several articles on integrating mediawiki with other PHP frameworks like drupal and forum software, but that is more than i need.
What is the best way to do this? -check for cookies somehow (is this secure?) -does the mediawiki db keep track of who is logged in?
Thanks