人生是一场不能存盘的RPG,我只能尽量多搞几个Screenshot

August 24, 2006

开发asp.net应用的两条经验

Filed under: ASP.NET

1.不要把session保存在进程的内存中.
有n种可能会导致进程中的session丢失:对web.config和global.asx进行病毒扫描,修改bin目录的内容,
asp.net的预编译.
更重要的是如果想使用多台web server,就决不能把session放到进程中

因此,所有要放入session的class必须可serialize,且尽量小.

2.一开始就使用https,以免后来才发现程序因为安全因素不能执行.

Comments »

The URI to TrackBack this entry is: http://recordsome.blogsome.com/2006/08/24/p157/trackback/

No comments yet.

RSS feed for comments on this post.

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>



Anti-spam measure: please retype the above text into the box provided.






















Get free blog up and running in minutes with Blogsome
Theme designed by Hadley Wickham