Click here to Skip to main content
15,886,778 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 Asp.net web.config file to avoid session timeout from certain aspx pages.

Thanks
Posted

 
Share this answer
 
SQL
Session.Timeout = 40

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

CSS
<system.web>
   <sessionstate timeout="30" />
<system.web>
</system.web></system.web>



this wont allow session to end before 30minutes


Salah
Osmosys
 
Share this answer
 
Comments
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