简体   繁体   中英

Persisting User Specific Settings in ASP.NET Server-Side

I'm working on a .NET 3.5 Web Application and I was wondering what would be good way to persist user specific settings (ie user preferences) server-side?

Here are the conditions:

  • It needs to be able to store/retrieve settings based on a User ID
  • I don't want to use SQL Server or any such DB engine
  • I don't want to store it in cookies

Any guidance would be greatly appreciated.

Edit : If it makes any difference, it doesn't have to support a web farm.

Use the ASP.NET Profile feature for this. See ASP.NET Profile Properties Overview

If you want to persist data, and you don't want to use a database, then you need to save the data to disk (such as XML). If you're looking for something that isn't local to your server, you could use a SaaS solution that would host your data for you, such as Amazon's S3 service . If you do that, the latency of data retrieval will slow your application down, so you'll want to cache the data.

文本文件(JSON / XML / etc),尽管安全性随后成为一个相关问题。

有了这些参数,您就可以跟踪服务器上自己的用户首选项XML文件。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM