Differences between cookie and session
I have seen a detailed explanation of the session on the Internet. It feels good that many people have been confused with the cookie and session. Therefore, I have borrowed some previous summaries here, I have
Purpose: The server can filter and regularly maintain the information contained in cookies or sessions to determine the status during HTTP transmission. Their most typical application is to determine whether a registered user has logged on to the
Abstract: Although the session mechanism has been adopted in Web applications for a long time, many people still do not know the nature of the session mechanism, and even cannot correctly apply this technology. This article will discuss in detail
Address: http://www.egzcn.com/article/webbc/JSP/2006-03-22/2003.html
Abstract: Although the session mechanism has been used in web applications for a long time, many people still do not know the nature of the session mechanism, and even cannot
[Abstract] session details
Keyword: Session
I. Term session
In my experience, the word session is abused only after transaction. What's more interesting is that transaction and session have the same meaning in some contexts.
Session, which is
I. Differences between cookie and session mechanisms
Specifically, the cookie mechanism adopts the client-side persistence scheme, while the session mechanism adopts the server-side persistence scheme.
At the same time, we can also see that because
Today, I saw an old post about session basics. I think it's good. I posted it to share it with you.
The original source is here
I. Term sessionIn my experience, the word session is abused only after transaction. What's more interesting is that
Keywords: Web
Requirement: A portal page is required for the company's internal website that was created some time ago. The message center module displays other applications of the company.ProgramThe pending approval record or other content
Session cookies-These are temporary and are erased when you close your browser at the end of your surfing session. the next time you visit that participant site it will not recognize you and will treat you as a completely new visitor as there is
In some situations such as voting, we usually require that each person only vote for one vote because of the principles of fairness. In some web development, similar situations are also found. At this time, we usually use cookies to implement such a
Cookie and Session, CookieSession
Cookie: The data (usually encrypted) stored on the user's local terminal on some websites to identify users and track sessions ).
In other words, Cookies are a technology that allows the website server to store a
Abstract: Although the session mechanism has been adopted in Web applications for a long time, many people still do not know the nature of the session mechanism, and even cannot correctly apply this technology. This article will discuss in detail
I. Term session
In my experience, the word session is abused only after transaction. What's more interesting is that transaction and session have the same meaning in some contexts.
Session, which is often translated into sessions in Chinese. Its
Cookies are browsers (user agents) access to a number of Web sites, these sites are stored in the client's set of data, used to make Web sites such as tracking users, implementation of user-defined features.
The domain and path properties of the
Set the valid time for the cookie object, the Setmaxage () method can set the valid time for the cookie object.
For example: cookie C = new Cookie ("username", "John");
C.setmaxage (60);//60 the meaning of the second
C.setmaxage (60*60);//One
On occasions like voting, we tend to ask everyone to vote for a fair number of reasons, and there are similar situations in web development where we usually use cookies, such as the following code:if (cookies.lenght = 0 | | | cookies =
Bloggers said : In this article, the main introduction of the cookie mechanism and session mechanism, and focus on the difference between the two, hoping to help you have a more in-depth cookie and session of a better understanding. Body Cookie
Servlet|session
first, the term sessionIn my experience, the term "session" is probably second only to transaction, and it is more interesting that transaction and session have the same meaning in some contexts.Session, Chinese often translated as a
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.