Python Forum
Missing cookies in session with requests
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Missing cookies in session with requests

I wrote little function that login to website with requests module , i used session ,
the login process is sucsseful and other request are also working , but there is one http response that return 2 "set-cookie" header ,
for some reason only one of the "set-cookie" is added to the session

this is part of my code :

    t = s.get(url0)

    t= s.get(URL2)  


this http put return 2 "set-cookie" :

HTTP response contains :

Quote:Response sent 42 bytes of Cookie data: Set-Cookie: wwww=AcLUCfdrggoKhb94Yj6fSA$$$$; Secure

Response sent 2630 bytes of Cookie data: Set-Cookie: xxxx=dGJZOUg2M3BEcVkvcXNJWG1; path=/; secure; HttpOnly

but when i print the session cookies it's only print the xxxx cookie ,

What am i missing ?

Possibly Related Threads…
Thread Author Replies Views Last Post
  Python cookies vj78 2 1,803 Apr-07-2021, 09:38 AM
Last Post: Naheed
  The CSRF session token is missing. randiaz 0 1,887 Jul-31-2020, 08:45 PM
Last Post: randiaz
  Catch all cookies from any website Chuky 8 5,390 Aug-20-2019, 04:24 PM
Last Post: snippsat
  python scraping all cookies halberdd 1 3,154 Feb-26-2019, 12:10 PM
Last Post: halberdd
  Flask: Cookies for Saving User Input ? jomonetta 2 2,182 Nov-03-2018, 10:47 AM
Last Post: j.crater
  Inserting multiple cookies using python requests freshtomatoes 0 3,655 Aug-16-2018, 09:25 PM
Last Post: freshtomatoes
  Unable to load cookies with Pickle HiImNew 5 8,125 Jan-04-2018, 12:36 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020