session expires error
after some time my website gives error session expires after login to my site
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Pankaj PandeyPosted Jun 24, 2013, 4:57 AM
or go to ur global.asax file and add
RichaPosted Jun 24, 2013, 5:10 AM
now it works
Sanjeeb LenkaPosted Jun 24, 2013, 5:03 AM
default time out of session is 20 min. you can increase or decrease it.
just add this code in web.confg(60 mint)
<configuration>
<system.web>
<sessionState mode="InProc" cookieless="true"timeout="60"/>
sessionState>
system.web>
configuration>
or 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;//15mintues
}
for better understanding follow this link
http://www.aspdotnet-suresh.com/2010/10/session-timeout-problem-in-aspnet.html
any problem reply
mark it as answered if it helps you