Click here to Skip to main content
15,894,106 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello friends,

I want to increase session time out period in my web application I have used following code in Global.asax file to increase session time :


void Session_Start(object sender, EventArgs e)
{

Session.Timeout = 30;

}

But still after user login session time is expired randomly. What should i do right now..?

thanks
sunil sharma
Posted

XML
Include this in you web.config file:

<system.web>
        <sessionState timeout="540"/>
</system.web>
 
Share this answer
 
v2
XML
Include this in you web.config file:

<system.web>
        <sessionState cookieless="false" timeout="540"/>
</system.web>
 
Share this answer
 
Hi Sunil,

I think this will definitely help you:
http://stackoverflow.com/questions/648992/session-timeout-in-asp-net/650126#650126[^]


Hope this helps!

Happy Coding :)
 
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