文章分类 | 推荐文章 | 最新文章 | 热点文章 | 最新软件 | 精品软件 | 下载排行 | 推荐下载 | 免费看大片 | WPS | 杀毒软件
清风网络
首 页 软件下载 网络学院 数码学院
QQ 电脑入门 游戏 操作系统 图形处理 办公软件 媒体动画 精文荟萃 工具软件 网络编程 程序开发 网络技术 认证考试 网站建设 文章专栏
当前位置:清风网络学院网络编程数据库小心!目录删除及重命名操作 一定丢失Session
精品推荐
特别推荐
·SQL数据库完全使用手册
·进阶:精妙SQL语句介绍
·sql删除记录
·学习SQL语句之SQL语句大全
·数据备份失败的五个原因及解决办法
·解决SQL Server常见的七个经典问题
·SQL存储过程的概念,创建,调用,管理,删除,优点
·带你轻松接触13个数据库术语
·如何恢复系统数据库如何恢复系统数据库?
·通过实例讲解由浅入深学会存储过程
·学会三个范式快速成为数据库设计的高手
·SQL数据库应聘人员面试时经常被问的问题
·问答:查询分析器不能单步调试的的原因
·数据库基础知识:SQL中的IIF语句详解
·WindowsXP+IIS+PHP5+MySQL5+Zend+GD库+phpMyAdmin+PHPWind 5.3 安装教程
·你知道吗?优化数据库前的十大问题
·自动备份注意事项让你远离误删数据噩梦
·关于MSSQL数据库日志满的快速解决办法
·SQL安全设置攻略
·SQL注入的不常见方法
热点TOP10
·数据结构(C#)_排序算法(冒泡排序)
·通过分析SQL语句的执行计划优化SQL(二)
·在DataTable中查询应该注意的问题
·使用FileWriter可以写UTF-8的解决方法
·SQL存储过程的概念,创建,调用,管理,删除,优点
·教你如何读取Excel数据并导入DB2数据库
·教你简单七招 轻松实现Web数据库的安全
·帮你精细分析各种类型数据库的死锁问题
·通过分析SQL语句的执行计划优化SQL(一)
·utl_file使用总结
·SQL数据库完全使用手册
·SQL中查询数据表字段名称的查询语句
·Delphi程序执行时实时生成报表
·玩转Windows桌面图标
·使用设计模式构建通用数据库访问类
·如何用sql语句修改数据表中字段,实现identity(100,1)的递增
·用独立的DLL来存储图片(资源文件)
·编程实例 WebGroupBox(Aspx控件)
·详细介绍Oracle数据库的启动和关闭
·从数据库来管理个人网站安全

小心!目录删除及重命名操作 一定丢失Session

日期:2007年2月3日 作者: 查看:[大字体 中字体 小字体]


如果你发现session突然无理由的丢失,而当你认真的检查代码并且排除其它常规可能丢失
的可能性时,你可能会像我一样,几乎要接近崩溃~!
后来发现问题出在我用代码创建一个临时目录然后删除临时目录的删除操作上。

现在和大家分享下:希望对碰到类似钉子的朋友有用。。

说白了session丢失实质就是:应用程序重起!

应用程序什么时候自动重起呢?

请参考:Anand在dotnetindia.com发表的文章

原文引用
{
Why ASP.NET Restarts?
Found this link from one of the blogs I was browsing today. This is ASP.NET Forum post by Patrick Y. Ng of MS.

This talks about both 1.0 and 1.1

This behaviour has been bugging lots of people. ASP.Net will restart its application for various reasons. All these reasons are legitimate, but the side effect is that the application will reset all its cache, application state, and InProc session states.
You can detect the restart of application and worker process by using the performance monitor. The counters to monitor are "ASP.NET\Application Restarts" and "ASP.NET\Worker Process Restarts".

For worker process restart, ASP.NET will write an entry in the eventlog to explain why (logLevel in controls how often eventlog is written).

For application restart, however, in v1 and v1.1 there is no easy way for a customer to figure out why a restart happened.

So by listing all reasons for app restart, I hope I can help some customers to understand and avoid the restart.

For v1
------
'http://www.knowsky.com
{
Things that causes application restart:

- The max compilation limit is reached (look for numRecompilesBeforeApprestart in machine.config)

- Physical application path of the web application has changed.

- Change in global.asax or one of the included files

- Change in machine.config

- Change in web.config in the app root

- Change inside bin directory or its subdirs

- A directory is renamed to bin, or bin is created

- Overwhelming change notifications – too many files are changed too fast in one of content directories – could happen if, for example, files are generated on the fly per request

- Change in the code-access security policy file
}

- The settings of various attributes in in machine.config affect the restart/shutdown of the worker process itself. However, if you use Windows 2003, and (by default) you are NOT using IIS5 isolation mode, is ignored. Instead, the settings in "Application Pools" in IIS manager is used.


For v1.1
--------
The list for v1.1 is the same as v1, with the following new conditions:

{

[1] [2] 下一页 




上一篇:ASP.NET 无法确保在注册的 JavaScript 内不存在重复定义

下一篇:让你的Excel 2007读出单元格的内容来

小心!目录删除及重命名操作 一定丢失Session 相关文章:
·操作电脑最忌的十八个小动作
·手机里舍不得删除的48条搞笑短信(保证你没看过)
·Windows XP操作系统中隐藏的20个秘密
·XP的一些禁忌 用XP的人一定要看
·快马加鞭 20秒进入Win XP操作系统
·如何卸载WindowsXP操作系统
·操作系统一样DIY ——将Windows XP改造成Media Center Edition
·添加或删除启动时自动运行的程序
·更改Windows XP操作系统序列号
·孤胆枪手2 操作篇
小心!目录删除及重命名操作 一定丢失Session 相关软件:
·电脑上网实用操作教程
·《苍天》偃月刀操作方法介绍视频
·提单操作手册
·淘汰落后生产能力、工艺和产品的目录
·目录加压大师(upx)V1.1
·微软官方Windows“冲击波”蠕虫删除工具 KB833330 简体中文版
·DirectX删除专家XP V2.02
·《苍天》双手大刀操作方法介绍视频
·人脑及其操作系统(上、下)
·《爷爷一定有办法》

特别声明:本站除部分特别声明禁止转载的专稿外的其他文章可以自由转载,但请务必注明出处和原始作者。文章版权归文章原始作者所有。对于被本站转载文章的个人和网站,我们表示深深的谢意。如果本站转载的文章有版权问题请联系编辑人员,我们尽快予以更正。
[打印本页] [关闭窗口] 转载请注明来源:http://www.viphot.com
| 帮助(?) | 版权声明 | 友情连接 | 关于我们 | 信息发布
Copyright 2007 www.viphot.com All Rights Reserved. 鄂ICP备05000083号Powered by:viphot