HTML5离线存储-会话的替代选择? [英] HTML5 offline storage - Alternative to Session?

查看:58
本文介绍了HTML5离线存储-会话的替代选择?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在一个使用Session的网站上工作.我们计划将该网站从 framework 2.0 迁移到 framework 4.0 .我们还计划使用HTML5.由于我们正在重新设计应用程序,因此我们也在尝试尽可能减少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.

HTML5的功能之一是脱机存储.可以用作保存会话数据的替代位置吗?HTML5脱机存储是否可以替代Asp.Net会话?

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?

推荐答案

会话数据存储在服务器上,HTML5脱机存储存储在浏览器中.如果您愿意将会话数据存储在浏览器中,请确保该数据可以正常工作.但是,如果您有敏感信息应保留在服务器上,请将其保留在会话中.

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.

这篇关于HTML5离线存储-会话的替代选择?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆