rchipka/node-osmosis

Can't capture session on redirect.

JemiloII opened this issue · 1 comments

So I'm testing my login via pixiv.net which starts at
https://accounts.pixiv.net/login.php
It creates a PHPSESSID that's non authenticated.

using the login method, I can login, and it calls itself. and has two set-cookie headers. Of which one has an authenticated PHPSESSID i want, then redirects to:

https://www.pixiv.net/
Once here I only have the original unauthenticated PHPSESSID. It never applied the set-cookie header from the successful post from https://accounts.pixiv.net/login.php because it redirected. When I'm in the browser, it has the authenticated PHPSESSID. But in osmosis it does not. Really pulling my hair out on this one. The only work around, which isn't ideal, is to login via the browser and use the PHPSESSID from the browser.

I tried .config({keep_alive: true, follow_max: 0})
And it stops at the successful login and I can get the header I want. HOWEVER, the PHPSESSID says deleted! How can I get it to not delete! Why doesn't osmosis set / update the PHPSESSID cookie?!

Just bumping this so it can get some visibility.