HW90
HW90

Reputation: 1983

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!

Upvotes: 10

Views: 9177

Answers (1)

Ron Sijm
Ron Sijm

Reputation: 8738

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.

Upvotes: 10

Related Questions