Session Timeout

Amoumboilla

New Member
How can I adjust the timeout of the session in the global.asax or the web.config<BR><BR>And if there is a way to make the session timeout infinite so the session end only when the browser close I would like to know it.Adjustng the <sessionState timeout="20" /> setting under <system.web> in web.config should do it.<BR><BR>("timeout" is in minutes.)<BR><BR>Haven't had a need for infinite timeouts, so can't help you there.When I had this to my web.config my site go down.<BR>I get a message saying that if i want to see the error I need to had some line to the web.config. The lines are already there.<BR><BR>The only way I can get my site up again is by uploading my backup. It corrupt my global.asax at the same time.<BR><BR>Any idea why ?In case you need more detail, web.config would look like:<BR><BR><?xml version="1.0" encoding="utf-8" ?><BR><configuration><BR> <system.web><BR> <sessionState timeout="20" /><BR> </system.web><BR></configuration><BR><BR>You may have many other settings in there as well...<BR>I added a slightly more explicit example to the top level of this thread that includes the whole web.config text. Here it is:<BR><BR><?xml version="1.0" encoding="utf-8" ?><BR><configuration><BR> <system.web><BR> <sessionState timeout="20" /><BR> </system.web><BR></configuration><BR><BR>I have not had any issues with it, so I can not explain your site problem - unless it was a syntax issue.I am not the host of the site, is this property secured or something that make it unaveable to me.<BR><BR>I have the exact same syntaxe.Thanks for trying i'll see what I can do with my host.Unfortunately, I can not answer that question - not having dealt with the issue. My apologies...In order for the <sessionState timeout="20" /> to work You need to mark your iis folder as an application. Right click on it and click properties; then click CREATE on the Directory tab and the folder will marked as an application.
 
Back
Top