当前位置: 首页 > 网络学院 > 服务端脚本教程 > ASP > ASP Ab与on 方法

ASP
ASP 介绍
ASP Install
ASP 语法
ASP 变量
ASP Procedures
ASP Forms
ASP Cookies
ASP Session
ASP Application
ASP #include
ASP Global.asa
ASP Send e-mail
ASP Response
ASP Request
ASP Application
ASP Session
ASP Server
ASP Error
ASP FileSystem
ASP TextStream

ASP Ab与on 方法


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-04   浏览: 328 ::
收藏到网摘: n/a

The Abandon method destroys a user session.
ASP Abandon 方法的作用是放弃执行用户的session。

Note: When this method is called, the current Session object is not deleted until all of the script on the current page have been processed. This means that it is possible to access session variables on the same page as the call to Abandon, but not from another Web page.
注意:当使用这个方法时,当前的session对象只有在所有当前页内的脚本程序全部执行后才会被删除。这就意味着当调用abandon命令时,你仍然可以在同一个页面内访问session程序,但在其他页面则不行。

Syntax
语法

Session.Abandon

Examples
举例

File1.asp:
<%
Session("name")="Hege"
Session.Abandon
Response.Write(Session("name"))
%>

Output:

Hege

File2.asp:

<%
Response.Write(Session("name"))
%>

Output:

(none)


评论 (0) All

登陆 | 还没注册?