维护一个asp.net页面状态 [英] Maintain state of an asp.net page

查看:126
本文介绍了维护一个asp.net页面状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是您的preferred方法来维持一个asp.net页面的状态,如果它是一个公共的网站(包括购物车,愿望清单等)。我在设计一个网站,将需要确保用户不能够与状态篡改(如删除饼干等)的过程中。

what is your preferred method to maintain state of an asp.net page, if it is a public website (involving shopping cart, wish-list etc). I am in the process of designing a website that will need to ensure that the user is not able to tamper with the state (such as delete cookies etc).

推荐答案

这两项数据块(购物车和放大器;愿望清单)听起来像他们应该被存储在数据库中,这样他们就可以持续超过被删除cookie或会话超时。

Both of those pieces of data (shopping cart & wish list) sound like they should be stored in your database, so they can persist beyond cookies being deleted or the session timing out.

这篇关于维护一个asp.net页面状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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