In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly introduces how to use [xss_clean], has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand.
Documentcookie gets and sets the cookie associated with the current document. If you need a generic library, check out the simple cookie framework.
Documentcookie syntax
Read all Cookie accessible from this location
AllCookies= [xss _ clean]
In the above code, allCookies is assigned to a string that contains all the Cookie, each cookie separated by a semicolon and a space (;) (that is, a key=value key-value pair).
Write a new cookie
[xss_clean] = newCookie
NewCookie is a string in the form of a key-value pair. It is important to note that only one cookie can be set or updated at a time with this method.
The following optional cookie attribute values can be followed by key-value pairs to specify settings / updates to cookie, separated by semicolons:
; path=path (for example,'/','/ mydir'), if not defined, defaults to the path to the current document location.
; domain=domain (for example, 'example.com','subdomain.example.com'), if not defined, defaults to the domain name part of the path to the current document location. Contrary to the earlier specification, add it before the domain name. The symbol will be ignored because the browser may refuse to set such a cookie. If a domain is specified, the subdomain is also included.
; max-age=max-age-in-seconds (for example, 60,60,24,365 a year)
If expires=date-in-GMTString-format is not defined, cookie will expire at the end of the conversation
For the format of this value, see Date.toUTCString ()
; secure (cookie is transmitted only through https protocol)
The value string of cookie can use encodeURIComponent () to guarantee that it does not contain any commas, semicolons, or spaces (these values are prohibited in cookie values).
Note: before Gecko6.0, the quotation marks of a path enclosed in quotation marks are treated as part of the path, not as a delimiter. It has now been repaired.
Documentcookie example
Simple usage
[xss_clean] = "name=oeschger"
[xss_clean] = "favorite_food=tripe"
Alert ([xss_clean])
/ / display: name=oeschger;favorite_food=tripe
Thank you for reading this article carefully. I hope the article "[xss_clean] how to use" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.