网络编程 | 站长之家 | 网页制作 | 图形图象 | 操作系统 | 冲浪宝典 | 软件教学 | 网络办公 | 邮件系统 | 网络安全 | 认证考试 | 系统进程
Firefox | IE | Maxthon | 迅雷 | 电驴 | BitComet | FlashGet | QQ | QQ空间 | Vista | 输入法 | Ghost | Word | Excel | wps | Powerpoint
asp | .net | php | jsp | Sql | c# | Ajax | xml | Dreamweaver | FrontPages | Javascript | css | photoshop | fireworks | Flash | Cad | Discuz!
当前位置 > 网站建设学院 > 网络编程 > ASP技巧
Tag:注入,存储过程,分页,安全,优化,xmlhttp,fso,jmail,application,session,防盗链,stream,无组件,组件,md5,乱码,缓存,加密,验证码,算法,cookies,ubb,正则表达式,水印,索引,日志,压缩,base64,url重写,上传,控件,Web.config,JDBC,函数,内存,PDF,迁移,结构,破解,编译,配置,进程,分词,IIS,Apache,Tomcat,phpmyadmin,Gzip,触发器,socket
网络编程:ASP教程,ASP.NET教程,PHP教程,JSP教程,C#教程,数据库,XML教程,Ajax,Java,Perl,Shell,VB教程,Delphi,C/C++教程,软件工程,J2EE/J2ME,移动开发
本月文章推荐
.域名登记查询(whois)很复杂吗--方.
.用XMLHTTP组件正确解析图片地址并.
.纯猝使用VBScript来实现加密.
.XML加ASP实现网页“本地化”.
.Varchar与char的区别.
.ASP的错误处理集锦.
.用ADO STREAM做的无组件上传程序.
.WINDOWS 2000搭載ASP3.0和IIS5.0.
.一个asp快速字符串连接类.
.Access通用-自动替换数据库中的.
.也谈ASP中的RESPONSE属性.
.ASP Session对象的集合以及属性方.
.将asp页面转换成htm页面.
.NT4的ODBC与SQL7相连,不支持中文.
.用ASP和Microsoft.XMLDOM分析远程.
.在HTML页面中实现点击数统计.
.ASP关于动态数据显示页面得锚点.
.关于图片与文本同存在数据库中的.
.较长数据无法在Asp页面中取出的三.
.ASP检索网站指定目录文件的算法与.

关于释放session的两篇文章(一)

发表日期:2001-4-5


If you are using ASP 3.0 (the version of ASP that comes with Windows 2000 / IIS 5) then you can use the following syntax:

Session.Contents.Remove "name"

where Name is the name of the Session variable you wish to remove. Removing Session variables in this way has its advantages over using the following method:

Session("Name") = Null

Namely, the above method (setting a Session variable to Null) only removes the memory associated with the Session variable itself... the Session object still maintains a reference to it, though. Each Session variables is stored in the Session object with a key/item pair, similar to the Scripting.Dictionary object. Therefore, using the Null method above, you are not removing the key from the Session Contents collection that contains the reference to the variable...

With the Remove method that we looked at first, you are removing both the key and item associated with a Session variable. There is also a RemoveAll method that can be used to scrap all of the Session variables completely:

Session.Contents.RemoveAll

Again, the Remove and RemoveAll methods are new to ASP 3.0. If you have ASP 2.0, you will need to use the Null method

上一篇:加密QueryString数据 人气:12478
下一篇:关于释放session的两篇文章(二) 人气:12488
浏览全部的内容 Dreamweaver插件下载 网页广告代码 祝你圣诞节快乐 2009年新年快乐