Question: I am developing movie ticket booking website. I am using sessions in that i want to extend the session timeout now am using 20mins as session timeout but when the user follows through the payment gateway or when he is in payment gateway page. the session timeout should not execute is there anyway to do that or session timeout should be extended .
can it be possible through the global.asax page or is there is any other way

Thanks in advance

Answer: 
you can adjust the application pool in the IIS process on the server where your application is hosted. By default it is set to 20 minutes. you can adjust it as per your convenience.

You can refer this [Link](http://asp-net.vexedlogic.com/2012/05/23/aspasp-net-session-timeout-how-do-i-change-it/)
In web.config.

```
 <system.web>
<compilation debug="true" targetFramework="4.0" />
<sessionState timeout="10"></sessionState>
<httpRuntime executionTimeout="9999" maxRequestLength="10240"/>
 .....
</system.web> 

```

It will set session time to 10 minutes

In Global.asax file we can set session timeout in Session\_Start event like this

```
 void Session_Start(object sender, EventArgs e)
 {
  // Code that runs when a new session is started
 Session.Timeout = 15;
 }

```

Add this lines of code for a particular session that you log in.