Asp. NET's session

Source: Internet
Author: User

Asp. NET's session

Asp. NET session is the best deal I have ever seen, which is unmatched by other dynamic web technologies. Asp. NET session no longer requires the support of cookies, that is, if the user closes the value of cookie,session can also be saved.

However, we need to make some preparations for the Config.web file, where we find the settings text about the session, such as:

Cookieless= "false"
/>

Change the cookieless= "false" to cookieless= "true", then the session will not be stored in the cookie, but stored in the URL.

In fact, I found that, do not change config.web file, switch off the cookie, do not use the URL can also pass the session value, in this case the session is how to preserve, this is not very clear:)

The session can also be kept alive, that is, when the server restarts, or to ensure that the value of the session is not changed, but this also changes the Config.web file. It is also set by the following statement.

Inproc= "false"
server= "localhost"
Port= "42424"
/>
is not found here the session is not very strong AH:), to change the localhost to the host you want, the session can also be maintained on another host.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.