Jump to content

Archived

This topic is now archived and is closed to further replies.

Reisswolf

PHP Cookies in Python

Recommended Posts

Hi,

Is there any quick way to read session cookies set in PHP from a page generated by Python CGI?

I have tried os.environ["HTTP_COOKIE"], but while the PHPSESSID cookie is propagated, the other cookies--in my case, the $_SESSION['user_name'] and $_SESSION['status'] cookies--are not.  (And yes, I did specify session.use_only_cookies in my PHP script.)

Pointers would be greatly appreciated.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.