What's diff. b/w App State & Session state

Source: Internet
Author: User
Tags diff

Application is a data repository available to all classes in an ASP. Application state was stored in memory on the server and was faster than storing and retrieving information in a database. Unlike session state, which was specific to a single user session, application state applies to all users and sessions. Therefore, application-a useful place-to-store small amounts of often-used data, does not the change from one use R to another.

ASP. NET session state enables your to store and retrieve values for a user as the user navigates ASP. NET pages in a Web app Lication. HTTP is a stateless protocol. This means, a WEB server treats each HTTP request for a page as an independent request. The server retains no knowledge of variable values that were used during previous requests. ASP. Identifies requests from the same browser during a limited time window as a session, and provide s A-persist variable values for the duration of this session. By default, the ASP. NET session is the enabled for all ASP. Applications.

Alternatives to session state include the following:

    • Application state, which stores variables, can is accessed by all users of an ASP.

    • Profile properties, which persists user values in a data store without expiring them.

    • ASP. Caching, which stores values in memory the is available to all ASP.

    • View state, which persists values in a page.

    • Cookies.

    • The query string and fields on a HTML form that is available from an HTTP request.

Check the below link for more information:

Http://msdn.microsoft.com/en-us/library/75x4ha6s.aspx

Regards,

Jai

Monday, October, 5:58 AM

What's diff. b/w App State & Session state

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.