Click here to Skip to main content
11,709,844 members (74,761 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET
hi all,

how to increase the session time in my web application. my web.config file

<system.web>
<sessionState mode="InProc" timeout="30" ></sessionState>
</system.web>

in my local system working is fine.after deployed my web site. i got the problem

i.e session time was working only 5mint. after 5mintesam click on any button redirect to lo-gin page.

how to in-cress the session time. please help me

thanks and regards
Posted 24-Jan-13 4:43am
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

How to increase session timeout [^]
sessionState Element[^]
<system.web>
    <authentication mode="Forms">
          <forms timeout="50"/>
    </authentication>
 
    <sessionState timeout="60"  />
</system.web>
  Permalink  
v3
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

In web.config you must set the authentication timeout.

<sessionState timeout="120"></sessionState>
<authentication mode="Forms">
  <forms name="Authentication" loginUrl="~/FormStart.aspx" protection="All" timeout="120" />
</authentication>
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

set this in
<system.web>
<customerrors mode="off" />
<httpruntime executiontimeout="900000" maxrequestlength="4096" usefullyqualifiedredirecturl="false" minfreethreads="8" minlocalrequestfreethreads="4" apprequestqueuelimit="100" enableversionheader="true" />
---
----
</system.web>

and set
debug ="false"
in web,config, before your publish website.....

and set timeout in your IIS for your website......
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 524
1 OriginalGriff 250
2 Peter Leow 229
3 Maciej Los 180
4 Mika Wendelius 125
0 OriginalGriff 9,428
1 Sergey Alexandrovich Kryukov 9,037
2 CPallini 5,189
3 Maciej Los 4,991
4 Mika Wendelius 3,856


Advertise | Privacy | Mobile
Web01 | 2.8.150819.1 | Last Updated 24 Jan 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100