Click here to Skip to main content
15,797,721 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Experts,

I am wondering if there is a way on web.config file to avoid session timeout from certain aspx pages.


Share this answer
Session.Timeout = 40

The Page_Load event is a good place to set this.
Share this answer
In web.config file

   <sessionstate timeout="30" />

this wont allow session to end before 30minutes

Share this answer
netJP12L 29-Aug-13 12:39pm    
I don't want to change the global application session timeout. I would like to prevent session timeout from only one page. For instance, a web application is based on three aspx pages and have a 30 minutes session timeout. But, how could I prevent the fourth page not to have the session time out.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900