惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Google DeepMind News
Google DeepMind News
Stack Overflow Blog
Stack Overflow Blog
Hugging Face - Blog
Hugging Face - Blog
博客园_首页
T
The Blog of Author Tim Ferriss
博客园 - 叶小钗
N
Netflix TechBlog - Medium
腾讯CDC
C
Check Point Blog
P
Proofpoint News Feed
Engineering at Meta
Engineering at Meta
GbyAI
GbyAI
S
SegmentFault 最新的问题
F
Fortinet All Blogs
美团技术团队
U
Unit 42
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园 - 司徒正美
F
Full Disclosure
Recorded Future
Recorded Future
D
DataBreaches.Net
博客园 - 【当耐特】
Martin Fowler
Martin Fowler
J
Java Code Geeks
I
InfoQ
Y
Y Combinator Blog
A
About on SuperTechFans
AI
AI
爱范儿
爱范儿
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Forbes - Security
Forbes - Security
W
WeLiveSecurity
M
MIT News - Artificial intelligence
雷峰网
雷峰网
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Simon Willison's Weblog
Simon Willison's Weblog
Schneier on Security
Schneier on Security
The GitHub Blog
The GitHub Blog
Security Archives - TechRepublic
Security Archives - TechRepublic
aimingoo的专栏
aimingoo的专栏
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
G
GRAHAM CLULEY
Know Your Adversary
Know Your Adversary
Latest news
Latest news
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
D
Docker
Recent Commits to openclaw:main
Recent Commits to openclaw:main
量子位
V2EX - 技术
V2EX - 技术
Project Zero
Project Zero

博客园 - 星星博客园

关于win10打开Word文件提示“转换文件”,选择文件类型的问题解决方式 关于安装R语言的Rattle报错问题的解决方式 office安装错误,报1603 apple mobile device recovery mode 问题解决 关于informix中判断字母是否为汉字的一点技巧 使用Hibernet开发informix数据库程序小结 etc的默认级别 MySQL关于TYPE和ENGIN的一点问题 转两篇关于JVM参数调优 SQL与NoSQL的一些内容汇总 informix 临时空间 Informix 生成随机数 导出Excel(脱离Office环境) 研究Mybatis的Jpetshop-系统搭建(一) 创建一个Jetty的Server 先写一点informix的 文件 "C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\mastlog.ldf " 已压缩,但未驻留在只读数据库或文件组中。必须将此文件解压缩。【转】 - 星星博客园 Weblogic常用监控指标(转) BEA WebLogic平台下J2EE调优攻略【转】
关于Session问题
星星博客园 · 2011-03-05 · via 博客园 - 星星博客园

出了一个明奇妙的问题,用Session记录权限信息容易丢失相关信息,查明原因是:

  默认情况下是InProc,也就是将Session保存在进程内(IIS5是aspnet_wp.exe,而IIS6是W3wp.exe),这个进程不稳定,在某些事件发生时,进程会重起,所以造成了存储在该进程内的Session丢失。

  哪些情况下该进程会重起呢?微软的一篇文章告诉了我们:

  1、配置文件中processModel标签的memoryLimit属性

  2、Global.asax或者Web.config文件被更改

  3、Bin文件夹中的Web程序(DLL)被修改

  4、杀毒软件扫描了一些.config文件。

  更多的信息请参考PRB: Session variables are lost intermittently in asp.net applications

     解决方式包括:

    1、将服务器Session信息存储在进程外

         Web.config文件中,将mode的值改为StateServer。stateConnectionString="tcpip=127.0.10.1:42424"。不要忘记启动ASP.NET 状态服务服务。

    2、将服务器Session信息存储在SQL Server中

        C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 目录下的InstallSqlState.sql文件SQL管理器中执行,然后修改

Web.config文件中,将mode的值改为SQLServer。sqlConnectionString="data source=localhost; Integrated Security=SSPI;"的形式,意思想想可以明白的。

这两种方式不会伴随IIS的重启Session丢失的,除非超时了,可以试试哦

参考资料:

http://www.cnblogs.com/tonyqus/archive/2006/10/24/522618.html

http://tech.ddvip.com/2009-07/1248501422126295.html

http://www.builder.com.cn/2008/0323/780027.shtml