cookies - Phantomjs and sessions -
i can't maintain session surfing through website 1 time logged in.
i can login on site (i specify whatever page is, after login redirected homepage) have move page. first tried page.open() page.evaluate changing location.href window property, in both cases unfortunately result i'm not logged in anymore. traced login status rendering page on every page load event incremental png names (1.png, 2.png, etc) . tried --cookies-file=cookies.txt param didn't help much.
my questions are: best way "move" through site pages phantomjs? there specific way handle sessions in these cases (maybe sending cookies manually on each .open(), saying)?
thanks help.
sessions require cookies. have add together argument in phantomjs.
--cookies-file=/path/to/cookies.txt
look here more info.
edit : cookies.txt
contains ?
session cookies login phantomjs
No comments:
Post a Comment