node-osmosis icon indicating copy to clipboard operation
node-osmosis copied to clipboard

Can't capture session on redirect.

Open JemiloII opened this issue 7 years ago • 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?!

JemiloII avatar Aug 18 '18 05:08 JemiloII

Just bumping this so it can get some visibility.

JemiloII avatar Oct 17 '18 19:10 JemiloII