Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't capture session on redirect. #222

Open
JemiloII opened this issue Aug 18, 2018 · 1 comment
Open

Can't capture session on redirect. #222

JemiloII opened this issue Aug 18, 2018 · 1 comment

Comments

@JemiloII
Copy link

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
Copy link
Author

Just bumping this so it can get some visibility.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant