Why can't I maintain a session session after logging in with session (), and still prompt me to log in?

topic description

still cannot maintain a session session with session (),

sources of topics and their own ideas

url1 logs in with the account password. The url2 API also needs to be logged in, but this API returns data normally. Url3 also needs to log in, but it indicates that it is not logged in. The rookie asked a question for the first time. I"ve been stuck all day and ask the gods for help

related codes

import requests
S = requests.session ()
url =" http://m.xxxxx.com/user/login."
headers = {"User-Agent": header information}
data = {" username":"zhanghu",

    "password":"654321",
    "platform":"wap"}

r = S.post (url,data=data,headers=headers)
print (r.cookies)
print (r.text)
url2 =" http://m.xxxxx.com/v2/indexData"
data2 = {"pageIndex":"2", "pageSize":"6"}
url3 =" http://m.aaaa.cn/game/50007/play"
ChouJiang = S.post (url3,)

< H1 > print (ChouJiang.text) < / H1 >

if you click url3, normally, you should give the information returned by the API to win a prize or there is no lottery number. Now it is prompted that you are not logged in.

Dec.16,2021
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3b7bb-2c28d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3b7bb-2c28d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?