会话问题Asp.net [英] Session Issue Asp.net
本文介绍了会话问题Asp.net的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我通过登录启动应用程序并在登录首页打开应用程序后.当会话丢失时,请再次登录以打开主页,但是我想在登录后打开工作页面以丢失会话为准.因此,请帮助我.
When I start the application through login and after login home page open of application. When session is lossed then login again open home page but I want to after login open working page whichever session is lossed. So please help me.
推荐答案
您可能正在寻找类似的东西.
http://www.4guysfromrolla.com/webtech/tips/t022800-1.shtml [ ^ ]
You might be looking for something like this.
http://www.4guysfromrolla.com/webtech/tips/t022800-1.shtml[^]
写下注销按钮单击事件上的代码,
Write down the code on your logout button click event,
try
{
Session.Abandon();
Session.Clear();
Response.Redirect("loginPage.aspx");
}
catch (Exception ex)
{
//Handle exception here
}
纳伦达,
请通过下面的URL并下载ASPNET_jQueryUI_Dialog_Timeout示例,尝试一下
工作正常
https://skydrive.live.com/? cid = f7c93b143c55f787& sc = documents& id = F7C93B143C55F787%21230#cid = F7C93B143C55F787& sc =文档
或
在web.config
Hi narendar,
go through below url and download ASPNET_jQueryUI_Dialog_Timeout example try it
working fine
https://skydrive.live.com/?cid=f7c93b143c55f787&sc=documents&id=F7C93B143C55F787%21230#cid=F7C93B143C55F787&sc=documents
or
in web.config
<sessionstate mode="StateServer" timeout="360" />
希望对您有帮助
i hope this is help you
这篇关于会话问题Asp.net的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文