Skip to main content
13 events
when toggle format what by license comment
Jan 30, 2023 at 12:45 comment added Benjamin Goodacre @Gtx github.com/damonjavert/requestsloginsession
Jun 9, 2022 at 18:34 history edited A. Wilson CC BY-SA 4.0
Old link is dead, long live the new link
Apr 29, 2022 at 7:44 history edited user3064538 CC BY-SA 4.0
added 4 characters in body
Jun 3, 2020 at 19:32 comment added Pulkownik @SergeyNudnov Many thanks for your comment I wasted a lot of time trying to figure out why session does not handle cookies correctly. Changing domain from localhost to localhost.local solved the problem. Thanks again.
Apr 30, 2020 at 19:11 comment added Sergey Nudnov For the requests sent to localhost, there could be troubles with login and other cookies returned by web server, if they contain incorrect domain property value. For localhost, web server should return cookies with domain property set to localhost.local, otherwise the cookie will not be applied to the session. In that case use 127.0.0.1 instead of localhost
Nov 10, 2019 at 21:04 history edited johndodo CC BY-SA 4.0
Lowercase "session" is deprecated; replaced inaccessible URL
Nov 1, 2018 at 11:54 comment added brainLoop what if I involve proxy?
Apr 13, 2016 at 14:42 comment added Cyril Can pickle.dump session cookies to a file like pickle.dump(session.cookies._cookies, file) and pickle.load to session like follows cookies = pickle.load(file) cj = requests.cookies.RequestsCookieJar() cj._cookies = cookies and session.cookies = cj
Dec 10, 2015 at 18:37 comment added Gtx Any ways to save Session itself between script runs?
Apr 12, 2014 at 17:52 history edited Anuj Gupta CC BY-SA 3.0
added 14 characters in body
Oct 5, 2012 at 1:05 vote accept ChrisGuest
Oct 5, 2012 at 0:29 history edited Anuj Gupta CC BY-SA 3.0
added 10 characters in body
Oct 5, 2012 at 0:24 history answered Anuj Gupta CC BY-SA 3.0