Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

On-Session-expire-event?

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?

Thanks a lot!

like image 941
HW90 Avatar asked Dec 13 '11 11:12

HW90


1 Answers

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.

like image 124
Ron Sijm Avatar answered Oct 21 '22 17:10

Ron Sijm