Home > Net >  Cookies can write WeChat authorization process, after the jump page can't read
Cookies can write WeChat authorization process, after the jump page can't read

Time:10-02

1. WeChat authorization for Openid, and write a cookie, jump to the home page
2. The home page, executing judgment through cookies to access the database query, obtain corresponding data (but this step for less than a cookie)

Step 1 part code screenshots

Step 2 part code screenshots


Questions: replenish server take a project, can obtain the cookie, after put multiple items for less than the (different) method is similar, the name of the cookie, restart the server can get to the cookies at the beginning, over time and can not get, for help, can't find the reason

CodePudding user response:

WeChat internal authorization after the jump, don't save cookies,

CodePudding user response:

Without a tube, is the problem you met? https://blog.csdn.net/hsywan/article/details/80776757

CodePudding user response:

reference 1st floor HXXCCC response:
WeChat internal authorization after the jump, don't save cookies,


Let alone can obtain server project, and can obtain apple mobile phone, android mobile phone no, very strange

CodePudding user response:

refer to the second floor HXXCCC response:
does not use in a tube, the problem you met? https://blog.csdn.net/hsywan/article/details/80776757


Should not, because if we can get to the cookies, can jump to other pages, code will not be repeated requests, until three or four projects using this code, but are separate server put, no problems, put a few more different projects on the server at present problems

CodePudding user response:

Multiple projects, I want to ask next, domain name with a subdomain?

CodePudding user response:

reference 5 floor HXXCCC reply:
multiple projects, I want to ask next, domain name with a subdomain?


Well with as part of the domain name

CodePudding user response:

What did server redirect, jump page subdomain to parent domain name? So, the cookie domain attribute has set? All not line, your browser debug mode and see the value of the cookie,

CodePudding user response:

refer to 7th floor HXXCCC response:
servers have redirected, jump page subdomain to parent domain name? So, the cookie domain attribute has set? All not line, debug mode and see the value of the cookie, your web browser


No redirects, jump page, under the subdomain domain attribute set up also not line, I view the browser cookies set domain are corresponding subdomain, expiration time is longer

CodePudding user response:



It's very strange,

Such a great spirit to see,

CodePudding user response:

references 9 f HXXCCC response:


It's very strange,

Such a great god to see


Can well is very strange and apple mobile phone android no thank you!

CodePudding user response:

If you need to write cookies to save, later every call interface to take cookies with you?
https://www.cnblogs.com/sunLemon/p/9585532.html
  •  Tags:  
  • C#
  • Related