上会话过期事件? [英] On-Session-expire-event?

查看:141
本文介绍了上会话过期事件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的编程应用MVC3。现在我要哈瓦调用脚本,如果用户会话过期。

I'm programming an MVC3 application. Now I hava to call a script if the users session expire.

有什么样一个事件上的会话到期,当用户会话过期被解雇?

Is there something like a event on-session-expire, that get fired when the user session expired?

非常感谢!

推荐答案

在你的的Global.asax
你可以创建一个

In your Global.asax you can create a

protected void Session_End(object sender, EventArgs e) { }

在会话结束时应该被调用的方法。

method which should be called when a session ends.

这篇关于上会话过期事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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