HTTP protocol with state hold: HTTP is a stateless protocol
1. scheme to achieve state retention:
1 Modify the HTTP protocol so that it supports status (difficult to do) 2 Cookies: Maintain state information through the client
Cookies are special
The XMLHttpRequest object is the technical foundation of all today's Ajax and Web 2.0 applications. Although software distributors and open source communities are now providing a variety of AJAX frameworks to further simplify the use of
Cookies and sessions are commonly used to implement the Http state of the technology, in the continuous use of their own understanding of it. My next discussion is based on the following sequence:
1. Why to use cookies and session
Because the
First of all, we have to learn some optimization of the site performance and experience of the theory and the basic knowledge, Yahoo has helped us to sum up, see the reference links in several articles, a kind-hearted person has been translated into
Typically, in a well-designed web application, servlet and JSP technologies are used synthetically. The servlet controls the flow of business, and the JSP is responsible for the display of the results of the business process. In this case, the
Reprinted from http://blog.csdn.net/yunnysunny/article/details/26935637
The basic principle and safety of session
1.session principle
Referring to the session, you will definitely associate with login, log in after successful login status, while
the difference between a cookie mechanism and a session mechanism
In particular, the cookie mechanism uses a scheme that maintains state on the client, while the session mechanism uses a scenario that maintains state on the server side.
We also
The obvious advantage of being able to run the same piece of JavaScript code on both the server and the client is that it enables you to use the same code base for Ajax and non-AJAX clients, and provides more flexibility. For example, if you develop
Favorite: Http://www.91ri.org/3364.htmlSource: 91RiEasy access to the previous collation has the wrong point of Note: The text part is-not-(this is not I do not want to modify, but the problem of the site system, I am sorry, please make a copy of
When a web system from 100,000 daily visits to 10 million, or even more than 100 million of the process, the web system will be more and more pressure, in this process, we will encounter a lot of problems. To address these performance pressures, we
Tag: DMI Union ST Table level does not perform a different error request-u "(URL)"1、判断可注入的参数2、判断可以用那种SQL注入技术来注入3、识别出哪种数据库4、根据用户选择,读取哪些数据The SQLMAP supports five different injection modes:1, based on the Boolean blind, that can be based on the return
In-depth research into a technology to understand the details of using these technologies is ultimately a matter of choosing what to do when we want to use these technologies to solve a specific problem. If there are two technologies that will allow
Javaweb Learning Summary (46)--filter (filter) Common application One, unified all-station character encodingSpecify which character encoding to use to handle the Chinese problem of the HTML form request parameter by configuring the parameter
HTTP Client Hints Technology in HTTP network protocol
In recent years, various Web technologies have been explosively developing, and many new things have emerged every day. To address this problem, the two bosses in the industry have recently
Summary: describes the differences and usage of cookies, LocalStorge, and SesstionStorge.
1. simple comparison of various storage solutions
Cookies: supported by browsers, with a capacity of 4 kb
UserData: only supported by IE, with a capacity of 64
Cross-origin access to ASP. net mvc in Angular2, angular2mvc
Application scenarios
Project Development decides to use angular2 for frontend and backend separate development. I am responsible for backend service development. At first, I chose
1.PHP Generating XML data① Stitching Strings② using System classes (Domdocument,xmlwriter,simplexml)Example 1 uses the DomDocument class in the PHP system class:PHP $dom New DomDocument (' 1.0 ', ' utf-8 '); $element $dom->createelement (' Test ', '
HTTP response last-modified and ETag
[Date: 2008-06-16]
Source:
[Font: Big Small]
Basic knowledge 1) What is "last-modified"?When the browser requests a URL for the first time, the server-side return status is
Servlet interface:Public interface ServletIts lifecycle is defined by the javax. Servlet. Servlet interface. When writing a Servlet, you must directly or indirectly implement this interface. Generally, it tends to be indirect: Derived from javax.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.