How to extend session time out in ASP .NET 3.5 web application

Expert:
I have a dot net asp 3.5 C# web application that times out before a function loops through a  time consuming routine that generates and outputs a lot of word documents that are send to a printer for hard copies. Is there a way that the session time out period can be extended beyond normal session time or long enough to print all the documents? Or does the web server session time have to be extended to allow enough time to print all the documents. Please kindly tell me what can be done?
tcmmaxtAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

meetingexpectationsCommented:
<configuration>
  <sessionstate
      mode="inproc"
      cookieless="false"
      timeout="20"
      sqlconnectionstring="data source=127.0.0.1;user id=<user id>;password=<password>"
      server="127.0.0.1"
      port="42424"
  />
</configuration>

Also check you IIS timeout..

http://support.yessoftware.com/kb_article.asp?kb_articlesPage=2&article_id=74
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
NishchayaAndrewCommented:
hi tcmmaxt,

Session.Timeout = 60;//it means that you have extended the Session time out from default 20min to 60min.

I hope that above make sense & easy to alter/adopt, while if you go with the above it will set to all application by default. I believe that you shoud use this extended timje only when that page / process requires.

 
0
rajapandian_81Commented:
In web.config file you can mention the timeout period in minutes.

<sessionState mode="InProc" cookieless="false" timeout="180"/>
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.