View Single Post
Old 02-14-2011, 09:25 PM   #1
EW1(SG)
Junior Member
EW1(SG) began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Feb 2011
Device: Kindle
How do I handle PHPSESSID cookie?

After Starson17 pointed me in the right direction yesterday with some debug functions in Google Reader, I've managed to progress to the point where I am getting logged into a subscription only site~only to find that the session cookie(s) are not being sent to the server when my recipe gets around to downloading articles.

I was thinking that cookies = mechanize.CookieJar()
br = mechanize.build_opener(mechanize.HTTPCookieProcess or(cookies))

would handle sending the PHPSESSID cookie back to the server, but that doesn't seem to be so.

So what should I be using to get the sessions to persist for the feed downloads?

Thank you, and I promise to put python on my list of things to do...
EW1(SG) is offline   Reply With Quote