1. 首页
  2. 课程学习
  3. .Net
  4. javascript asp教程第九课--cookies

javascript asp教程第九课--cookies

上传者: 2021-06-10 03:36:14上传 PDF文件 58.15 KB 热度 10次

Setting a cookie with ASP is pretty simple. The format is If on the first page of your ASP application Response.Cookies is set, and subsequently on page two of your application Response.Cookies is reassigned a second value, then only the second value will remain. The first value is lost in this circumstance. The solution is to either use multiple cookies or to use multiple Keys in the SAME cookie. Response.Cookies="Here's the first Key.". The Setting of one or more Keys is pretty simple. It follows this format: Generally you will find ASP cookie management to be far easier than Client Side JavaScript cookies. Down below is the script that retrieves the cookies. . Click Here to see how we would sort cookies. Do I even need to explain "firstCookie" and "secondCookie"?To delete a cookie, give it an expiration date in t

用户评论