« 自动编号字段的值能不从1开始吗?xhtml元素速记卡 »

asp清空session 关于Session.Abandon的使用注意事项

本文关于session对象方法Abandon,使用该方法可以清空session中的值。

首先阅读一下微软的文档:

Remarks
When the Abandon method is called, the current Session object is queued for deletion, but is not actually deleted until all of the script commands on the current page have been processed. This means that you can access variables stored in the Session object on the same page as the call to Abandon, but not in any subsequent Web pages.

 


 

如果调用Abandon 方法的话,在当前页面的脚本执行完之后,当前的session对象将会被删除;在本页中仍然可以调用session对象中存储的值,by

原创文章如转载,请注明:转载自悠悠博客 [ http://www.ajaxstu.com/ ]

相关文章:

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。