成功验证后,服务器将发送以下cookie:
Server:
X-XSS-Protection: 1
X-AspNetWebPages-Version: 3.0
Set-Cookie: EmpID=xOjoyivp84OC6KkV0w4hXLfclbzX2mpB+HTbZPGztus=; expires=Sat, 28-Sep-2019 01:46:43 GMT; path=/; secure; HttpOnly
Set-Cookie: AccessLev=qTxevtKQJG2aZZxwqpGn4w==; expires=Sat, 28-Sep-2019 01:46:43 GMT; path=/; secure; HttpOnly
Set-Cookie: GemsID=r2d2IJopaNhaaq2Xw74xpVDU12/KDqTpsQM0problpk=; expires=Sat, 28-Sep-2019 01:46:43 GMT; path=/; secure; HttpOnly
Set-Cookie: CurEmp=olSY3jYBGUap+wage0B2vA==; expires=Sat, 28-Sep-2019 01:46:43 GMT; path=/; secure; HttpOnly
Set-Cookie: DeptID=5GWJbAVQFjgl8iryDpRXwDMZ1TyR1Yy5MIAPqrjQvQ8=; expires=Sat, 28-Sep-2019 01:46:43 GMT; path=/; secure; HttpOnly
Set-Cookie: RegionID=CS/ZvhjT4U6SZTleOntODw==; expires=Sat, 28-Sep-2019 01:46:43 GMT; path=/; secure; HttpOnly
Set-Cookie: DistrictID=0S72z9jx4ausKB/FMt/JBA==; expires=Sat, 28-Sep-2019 01:46:43 GMT; path=/; secure; HttpOnly
Set-Cookie: SupGrpID=pWWsYnDC+RKT/afWrJ1xYtZ2no5TWNQQRSdGznFVnsI=; expires=Sat, 28-Sep-2019 01:46:43 GMT; path=/; secure; HttpOnly
Set-Cookie: Uploader=mdDmHcf27f4q9X7cQ6UE9g==; expires=Sat, 28-Sep-2019 01:46:43 GMT; path=/; secure; HttpOnly
Set-Cookie: PTSupEmp=; expires=Sat, 28-Sep-2019 01:46:43 GMT; path=/; secure; HttpOnly
Set-Cookie: MultiStat=olSY3jYBGUap+wage0B2vA==; expires=Sat, 28-Sep-2019 01:46:43 GMT; path=/; secure; HttpOnly
Set-Cookie: EmpInits=F2Hrvzdk1Dn6RQxn1DWK+A==; expires=Sat, 28-Sep-2019 01:46:43 GMT; path=/; secure; HttpOnly
Set-Cookie: PayrollStat=UtEDM/pSJ+Y/Htbr1pQdbw==; expires=Sat, 28-Sep-2019 01:46:43 GMT; path=/; secure; HttpOnly
Set-Cookie: RepType=olSY3jYBGUap+wage0B2vA==; expires=Sat, 28-Sep-2019 01:46:43 GMT; path=/; secure; HttpOnly
Set-Cookie: RepDef=olSY3jYBGUap+wage0B2vA==; expires=Sat, 28-Sep-2019 01:46:43 GMT; path=/; secure; HttpOnly
Set-Cookie: WeDate=azx53p/DcTjBIxxpLa4zBNGMR+e201n0mjRcVB94ZdM=; expires=Sat, 28-Sep-2019 01:46:43 GMT; path=/; secure; HttpOnly
Set-Cookie: Debug=olSY3jYBGUap+wage0B2vA==; expires=Sat, 28-Sep-2019 01:46:43 GMT; path=/; secure; HttpOnly
Set-Cookie: DispVal=olSY3jYBGUap+wage0B2vA==; expires=Sat, 28-Sep-2019 01:46:43 GMT; path=/; secure; HttpOnly
Set-Cookie: SortOpt=; expires=Sat, 28-Sep-2019 01:46:43 GMT; path=/; secure; HttpOnly
Set-Cookie: CardClass=olSY3jYBGUap+wage0B2vA==; expires=Sat, 28-Sep-2019 01:46:43 GMT; path=/; secure; HttpOnly
Set-Cookie: WkDate=tFlsOD63+0Xu8kKB9lQcjadYk77Y4ifd6aNJBKoJggI=; expires=Sat, 28-Sep-2019 01:46:43 GMT; path=/; secure; HttpOnly
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Strict-Transport-Security: max-age=31536000; includeSubDomains
Date: Fri, 27 Sep 2019 01:46:43 GMT
Content-Length: 142
但是,其中一个cookie在重定向到主页后没有被发送回。即EmpID。到目前为止,我还无法确定原因。我在S.O上找不到建议的解决方案。为我工作了。
Cookie:
AccessLev=qTxevtKQJG2aZZxwqpGn4w==;
GemsID=r2d2IJopaNhaaq2Xw74xpVDU12/KDqTpsQM0problpk=;
CurEmp=olSY3jYBGUap+wage0B2vA==;
DeptID=5GWJbAVQFjgl8iryDpRXwDMZ1TyR1Yy5MIAPqrjQvQ8=;
RegionID=CS/ZvhjT4U6SZTleOntODw==;
DistrictID=0S72z9jx4ausKB/FMt/JBA==;
SupGrpID=pWWsYnDC+RKT/afWrJ1xYtZ2no5TWNQQRSdGznFVnsI=;
Uploader=mdDmHcf27f4q9X7cQ6UE9g==;
PTSupEmp=;
MultiStat=olSY3jYBGUap+wage0B2vA==;
EmpInits=F2Hrvzdk1Dn6RQxn1DWK+A==;
PayrollStat=UtEDM/pSJ+Y/Htbr1pQdbw==;
RepType=olSY3jYBGUap+wage0B2vA==;
RepDef=olSY3jYBGUap+wage0B2vA==;
WeDate=azx53p/DcTjBIxxpLa4zBNGMR+e201n0mjRcVB94ZdM=;
Debug=olSY3jYBGUap+wage0B2vA==;
DispVal=olSY3jYBGUap+wage0B2vA==;
SortOpt=;
CardClass=olSY3jYBGUap+wage0B2vA==;
WkDate=tFlsOD63+0Xu8kKB9lQcjadYk77Y4ifd6aNJBKoJggI=
答案 0 :(得分:0)
在这之后,我的脑袋for了很长时间,我终于想通了。 cookie容器的默认cookie限制为20。发送了21个cookie,当第21个cookie进入时,第一个cookie被转储。所以现在我像这样实例化我的cookie容器:
之前:
Public myCookieContainer = New CookieContainer()
之后
Public myCookieContainer = New CookieContainer(500, 500, 4096)