Asp.net|session ASP. NET in the session is I have seen the best processing, is other dynamic Web technology can not be compared. Asp. NET session no longer requires the support of cookies, which means that if the user closes the Cookie,session value, it can be saved as well.
However, we need to make some configuration of the Config.web file, where we find the text of the settings for the session, such as:
<sessionstate
Cookieless= "false"
/>
The cookieless= "false" to cookieless= "true", then the session will not be stored in the cookies, but stored in the URL.
In fact, I found that, do not change Config.web file, turn off cookies, do not use the URL can also pass the session value, this case is how to preserve the session, this is not very clear:
Session can also maintain the operation of the dead, that is, when the server is restarted, or can ensure that the value of the session is unchanged, but this will also change the Config.web file. is also set by the following statement.
<sessionstate
Inproc= "false"
server= "localhost"
Port= "42424"
/>
is not found here the session is very powerful AH: To change the localhost to the host you want, session can also be maintained on another host.
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.