Home > Net >  Asp.net 4.5 cookie after the jump page missing
Asp.net 4.5 cookie after the jump page missing

Time:09-30

It is strange,
A total of three directory, log into the directory first after A, then in A directory page menu to jump to B and C,
The current page of the inside of the A and B to jump, cookies are exist, is from A jump to C directory inside pages, cookies are empty,
Really don't understand me, all sorts of Path, Domain Expires is set up, is no,


WebCookieUtility. UserID=dt. Rows [0] [r]. "id" ToString ();
WebCookieUtility. Username=dt. Rows [0] [r]. "Username" ToString ();
WebCookieUtility. UserRealName=dt. Rows [0] [r]. "RealName" ToString ();
Response. Cookies [r]. "aaa_Userid" Expires=DateTime. Now the AddDays (1);
Response. Cookies [r]. "aaa_Username" Expires=DateTime. Now the AddDays (1);
Response. Cookies [r]. "aaa_UserRealName" Expires=DateTime. Now the AddDays (1);
Response. Cookies [r]. "aaae_Userid" Path="/"
Response. Cookies [r]. "aaa_Username" Path="/"
Response. Cookies [r]. "aaa_UserRealName" Path="/"
String domain=ConfigurationManager. AppSettings [" CookieDomain "];
Response. Cookies [r]. "aaa_Userid" Domain=Domain;
Response. Cookies [r]. "aaa_Username" Domain=Domain;
Response. Cookies [r]. "aaa_UserRealName" Domain=Domain;
Response. Cookies. The Add (new HttpCookie (" ASP.NET _SessionId, "Session. SessionID));

What a great god for help,

CodePudding user response:

First to determine A, B, C cross domain?

CodePudding user response:

Disable cookies?
  • Related