You need to save the user name and password when creating a project these days. You have never done anything similar before when you go to school, but you have done two example during the class and will never do it again. It is the first time to use cookies in practical applications.
An accident is not good. First, I have several questions listed. Of course, I have my own understanding. If not, please point out.
1. When the expires attribute of httpcookie is set and the cookie is obtained again after the setting is successful, the actual value is not displayed, but it does exist.
2. The Cookies obtained by response. cookies do not have any child keys. No matter whether or not the child keys are set in advance, the haskeys attribute of response. Cookies is always false.
3. Setting cookies to take effect seems to take effect after this request is completed. The debugging phase does not seem to see the effect of cookies.
4. Cookie. Values. Remove (key); response. Cookies. Remove (cookiename); are unavailable. I don't know why.
Thank you for your answers!