[英]remove data from session when user navigates from current page
Please help me with following problem. 请帮助我解决以下问题。
I am implementing credit card functionality and I want to remove data from session when user navigates from current page to other page. 我正在实现信用卡功能,并且当用户从当前页面导航到其他页面时,我想从会话中删除数据。
使用Session.Clear()
从会话状态集合中删除所有值。
I guess you want to remove session data. 我猜您想删除会话数据。 May be you can read this reference document and Session.Contents.RemoveAll for more understanding.
可能您可以阅读此参考文档和Session.Contents.RemoveAll以了解更多信息。 Also, you can use
Session.Clear()
to remove session variables from session state colelction 另外,您可以使用
Session.Clear()
从会话状态集合中删除会话变量
I use 我用
Session.Abandon()
see this coming from microsoft http://msdn.microsoft.com/en-us/library/ms524310%28v=vs.90%29.aspx 看到这来自微软http://msdn.microsoft.com/en-us/library/ms524310%28v=vs.90%29.aspx
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.