Session.Clear()与Session.RemoveAll() [英] Session.Clear() vs. Session.RemoveAll()

查看:551
本文介绍了Session.Clear()与Session.RemoveAll()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Session.Clear之间的差异() Session.RemoveAll()

说明和文档页面似乎在说同样的事情,但
我假设必须有某种原因产生两个功能,对吗?

The descriptions and documentation pages seem to say exactly the same thing, but I am assuming there must be some reason for creating two functions, am I right?

推荐答案

要成为保存,你可以永远只是叫他们都像这样....

To be save you can always just call them all like so....

Session.Clear()
Session.Abandon()
Session.RemoveAll()

VB.NET的例子,我相信所有你需要做的是放置;在他们每个人的结束。
这样做有问题,我作为我遇到了一些问题,他们没有被拆除的地方在我的会话。

VB.NET example, I am sure all you need to do is place the ; at the end of each of them. This did the trick for me as I had some problems with my Session before where they were not removed.

这篇关于Session.Clear()与Session.RemoveAll()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆