Search code examples
asp.nethtmlsessionoffline-storage

HTML5 offline storage - Alternative to Session?


I am working on a website which uses Session heavily. We are planning to migrate this website from framework 2.0 to framework 4.0. We are also planning to use HTML5. Since we are re-designing the application, we are also trying to reduce Session usage as much as we can.

One of the feature of HTML5 is offline storage. Can it be used as an alternative place to save Session data? Is HTML5 offline storage is substitute of Asp.Net session?


Solution

  • Session data is stored on the server, HTML5 offline storage is stored in the browser. If you are comfortable storing session data in the browser, sure that will work. If you have sensitive information that should remain on the server however, keep it in sessions.