---
title: "On-Session-expire-event"  
description: "On-Session-expire-event"  
author: "Royce Roy"  
published: 2014-08-25  
updated: 2014-08-25  
canonical: https://www.mindstick.com/forum/2134/on-session-expire-event  
category: "asp.net"  
tags: ["asp.net"]  
reading_time: 1 minute  

---

# On-Session-expire-event

I'm [programming](https://www.mindstick.com/articles/12214/web-development-company-in-india-laid-on-the-foundation-of-concrete-java-programming) an MVC3 application. [Now](https://yourviews.mindstick.com/view/81402/it-s-liberals-vs-progressives-in-us-politics-now) I hava to call a [script](https://www.mindstick.com/interview/477/how-can-i-execute-a-php-script-using-command-line) if the [users](https://www.mindstick.com/news/2244/issue-preventing-users-from-accessing-facebook-s-social-networking-platforms-has-been-resolved) [session](https://www.mindstick.com/articles/12042/session-in-c-sharp) expire.

Is there something like a [event](https://www.mindstick.com/articles/167719/marquee-hire-benefits-of-event-lighting-hire-london) on-session-expire, that get fired when the [user](https://www.mindstick.com/articles/13001/multi-statement-table-valued-user-defined-function-in-sql-server) session expired?

Thanks a lot!

## Replies

### Reply by Sumit Kesarwani

Hi Royce, \

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.


---

Original Source: https://www.mindstick.com/forum/2134/on-session-expire-event

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
