Jump to content

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.
Link to comment
https://forums.phpfreaks.com/topic/15529-php-cookies-in-python/
Share on other sites

Archived

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

×
×
  • Create New...

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.