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

I have one requirement where i have to stop session timeout for some pages of my application.

<sessionstate mode="InProc" timeout="30000">

this is what i am currently using now but this is not good for my website, as it will keep this session time for my entire website. i want to keep it only for some pages.

i want to stop session timeout for some pages of my application.

Thanks in Advance
Posted

You won't be able to disable session timeout, but you can set HttpContext.Current.Session.Timeout property from code to up to a year. But I suggest in this case you switch from in-process session state storage to something less volatile mode[^].
 
Share this answer
 
v3
Hi,

I don't think you could exclude any page from session because session is no depending on pages session is depending on request.

So, if you want to create some custom session (as you required) then you should write it in your own.

Thanks
Suvabrata
 
Share this answer
 

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