|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Session expires too early!!
Hi guys
I have .NET site and i have set a session on log-in to 30 minutes in my codebehind. But the session time outs generally in 2-3 mins. This is happening in my PC only, Win XP - IIS 5.0 Its working fine when i upload the site on server online. I have seen where i cud see in my IIS, and the session timeout is set 20 everywhere. Any ideas on what to do or where to look in IIS?? Thanx Micky |
|
#2
|
||||
|
||||
|
You may already have this in place, but double check...
Change the following time-outs in Internet Services Manager .Choose a value greater than the default of 20. 1. Select Default Web Site > Properties > Home Directory > Application Settings > Configuration > Options. 2. Enable the session state time-out and set the Session timeout for 60 minutes. 3. Select Application Pools > DefaultAppPool > Properties. 4. From the Performance tab under Idle timeout, set Shutdown worker processes after being idle for a value higher than 20. OR.... you can warn them with code... Code:
<%
advanceWarning = 2
jsTimeout = (session.timeout - advanceWarning) * 60000
%>
<script>
window.setTimeout("alert('Session is about to expire');",<%=jsTimeout%>);
</script>
|
|
#3
|
||||
|
||||
|
Quote:
Sorry Chapman, i cudnt this Application Pools ![]() Where is it located?? Quote:
![]() Thanx Last edited by micky : October 14th, 2006 at 06:55 AM. |
|
#4
|
|||
|
|||
|
The application pool settings are only in IIS6 (windows 2003), not in IIS 5.1 on XP
__________________
====== Doug G ====== I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain |
|
#5
|
||||
|
||||
|
Quote:
![]() |
![]() |
| Viewing: ASP Free Forums > System Administration > Microsoft IIS > Session expires too early!! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|