Accessing php $_SESSION from python (wsgi) - is it possible?

Posted by Bill Zimmerman on Stack Overflow See other posts from Stack Overflow or by Bill Zimmerman
Published on 2010-03-28T20:55:12Z Indexed on 2010/03/28 21:03 UTC
Read the original article Hit count: 181

Filed under:
|
|

Hi,

I've got a python/WSGI app which needs to check to see if a user has logged on to a PHP web app. The problem is that the PHP app checks if a user has logged on by comparing a value in the $_SESSION variable to a value in the cookie from the user's browser. I would prefer to avoid changing the behavior of the php app if at all possible.

My questions:

  1. Is there anyway I can access the session variables from within python? Where should I start to look?

  2. Are there any obvious security/performance issues I should be aware of when taking this approach?

© Stack Overflow or respective owner

Related posts about php

Related posts about session