会话值不维护所有页面 [英] Session Values not Maintain all the pages

查看:68
本文介绍了会话值不维护所有页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

登录目的我使用Session ID和Passes to Next页面显示有关会话ID和页面打开子链接的所有详细信息当我登出我登出的那些页面时但是当我再次登录另一个ID时,页面的一些标签显示上一个会话ID和一些页面显示新ID。我是如何解决这个问题的?

Login Purpose I used Session ID and Passes to Next pages show all the details regarding session ID and Open sub links of page when i logout in on of those pages I logout But when i log in again another ID some tab of pages shows previous session Id and some pages shows New Id. How i resolved this issue????????

推荐答案

在退出按钮上使用此按钮点击

use this on logout button click
Session.RemoveAll ();





详细信息可以查看此链接

http://forums.asp.net/t/1366105.aspx?清除+会话+变量+当+注销+按钮+被+点击 [ ^ ]



http://stackoverflow.com/questions/12172268/how-to-destroy-all -as-at-in-in-asp-net [ ^ ]


在注销中tton单击使用以下代码



In the logout button click use following code

Session.RemoveAll();
Session.Abandon();
Response.Redirect("Login.aspx");





谢谢



Thanks


这篇关于会话值不维护所有页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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