存储会话值的最长时间 [英] maximum time to store session values

查看:73
本文介绍了存储会话值的最长时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我们可以在网站中维持会话值多少时间.几个小时或几天
以及存储一个月以上的值的最佳方法是什么.
谢谢
srinivas

Hi,
how much long we can maintain the session values in the website.how many hours or days
and what is the best way to store values for over a month.
thanks
srinivas

推荐答案

不切实际,可能不可行.默认情况下,会话变量可以使用20分钟,尽管可以在web.config中对其进行更改.

ASP.NET会话状态概述 [如何:配置SQL Server来存储ASP.NET会话状态 [
Impractical and probably unworkable. By default session variables live for 20 minutes though this can be changed in the web.config.

ASP.NET Session State Overview[^]

You''d be best to store those values in a database if you need them to persist over a long period of time.

This will get you started: HOW TO: Configure SQL Server to Store ASP.NET Session State[^]


如果要将会话存储在处理(InProc),则最大限制为24小时或1440分钟.
If you want to store the session in process (InProc) then the maximum limit is 24 hours or 1440 minutes.


这篇关于存储会话值的最长时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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