维护一个asp.net页面状态状态、页面、asp、net

2023-09-07 10:17:57 作者:自取其咎

什么是您的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.