Microsoft IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsSystem AdministrationMicrosoft IIS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old October 13th, 2006, 05:34 AM
micky's Avatar
micky micky is offline
Couch Potato Wizard
Click here for more information. Click here for more information
 
Join Date: Jan 2005
Location: India
Posts: 11,024 micky User rank is General 12nd Grade (Above 100000 Reputation Level)micky User rank is General 12nd Grade (Above 100000 Reputation Level)micky User rank is General 12nd Grade (Above 100000 Reputation Level)micky User rank is General 12nd Grade (Above 100000 Reputation Level)micky User rank is General 12nd Grade (Above 100000 Reputation Level)micky User rank is General 12nd Grade (Above 100000 Reputation Level)micky User rank is General 12nd Grade (Above 100000 Reputation Level)micky User rank is General 12nd Grade (Above 100000 Reputation Level)micky User rank is General 12nd Grade (Above 100000 Reputation Level)micky User rank is General 12nd Grade (Above 100000 Reputation Level)micky User rank is General 12nd Grade (Above 100000 Reputation Level)micky User rank is General 12nd Grade (Above 100000 Reputation Level)micky User rank is General 12nd Grade (Above 100000 Reputation Level)micky User rank is General 12nd Grade (Above 100000 Reputation Level)micky User rank is General 12nd Grade (Above 100000 Reputation Level)micky User rank is General 12nd Grade (Above 100000 Reputation Level)  Folding Points: 1480 Folding Title: Novice Folder
Time spent in forums: 4 Months 1 Week 1 Day 14 h 16 m 33 sec
Reputation Power: 1787
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
__________________
Laziness is my religion and Sunday is my God

Get the Mantra!

Reply With Quote
  #2  
Old October 13th, 2006, 12:29 PM
chapman10s's Avatar
chapman10s chapman10s is offline
**Wanted Wizard**
ASP Free God (5000 - 5499 posts)
 
Join Date: Apr 2006
Location: Who knows...
Posts: 5,410 chapman10s User rank is General 5th Grade (Above 100000 Reputation Level)chapman10s User rank is General 5th Grade (Above 100000 Reputation Level)chapman10s User rank is General 5th Grade (Above 100000 Reputation Level)chapman10s User rank is General 5th Grade (Above 100000 Reputation Level)chapman10s User rank is General 5th Grade (Above 100000 Reputation Level)chapman10s User rank is General 5th Grade (Above 100000 Reputation Level)chapman10s User rank is General 5th Grade (Above 100000 Reputation Level)chapman10s User rank is General 5th Grade (Above 100000 Reputation Level)chapman10s User rank is General 5th Grade (Above 100000 Reputation Level)chapman10s User rank is General 5th Grade (Above 100000 Reputation Level)chapman10s User rank is General 5th Grade (Above 100000 Reputation Level)chapman10s User rank is General 5th Grade (Above 100000 Reputation Level)chapman10s User rank is General 5th Grade (Above 100000 Reputation Level)chapman10s User rank is General 5th Grade (Above 100000 Reputation Level)chapman10s User rank is General 5th Grade (Above 100000 Reputation Level)chapman10s User rank is General 5th Grade (Above 100000 Reputation Level)  Folding Points: 12139 Folding Title: Novice Folder
Time spent in forums: 3 Weeks 4 Days 12 h 36 m
Reputation Power: 1331
Send a message via AIM to chapman10s Send a message via MSN to chapman10s
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>

Reply With Quote
  #3  
Old October 14th, 2006, 02:52 AM
micky's Avatar
micky micky is offline
Couch Potato Wizard
Click here for more information. Click here for more information
 
Join Date: Jan 2005
Location: India
Posts: 11,024 micky User rank is General 12nd Grade (Above 100000 Reputation Level)micky User rank is General 12nd Grade (Above 100000 Reputation Level)micky User rank is General 12nd Grade (Above 100000 Reputation Level)micky User rank is General 12nd Grade (Above 100000 Reputation Level)micky User rank is General 12nd Grade (Above 100000 Reputation Level)micky User rank is General 12nd Grade (Above 100000 Reputation Level)micky User rank is General 12nd Grade (Above 100000 Reputation Level)micky User rank is General 12nd Grade (Above 100000 Reputation Level)micky User rank is General 12nd Grade (Above 100000 Reputation Level)micky User rank is General 12nd Grade (Above 100000 Reputation Level)micky User rank is General 12nd Grade (Above 100000 Reputation Level)micky User rank is General 12nd Grade (Above 100000 Reputation Level)micky User rank is General 12nd Grade (Above 100000 Reputation Level)micky User rank is General 12nd Grade (Above 100000 Reputation Level)micky User rank is General 12nd Grade (Above 100000 Reputation Level)micky User rank is General 12nd Grade (Above 100000 Reputation Level)  Folding Points: 1480 Folding Title: Novice Folder
Time spent in forums: 4 Months 1 Week 1 Day 14 h 16 m 33 sec
Reputation Power: 1787
Quote:
Originally Posted by chapman10s
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.
Done
Sorry Chapman, i cudnt this Application Pools
Where is it located??
Quote:
Originally Posted by chapman10s
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.
But it seems to working fine now
Thanx

Last edited by micky : October 14th, 2006 at 06:55 AM.

Reply With Quote
  #4  
Old October 14th, 2006, 04:23 PM
Doug G Doug G is offline
Grumpier Old Moderator
ASP Free God 11th Plane (10000 - 10499 posts)
 
Join Date: Sep 2003
Posts: 10,143 Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 23 h 19 m 36 sec
Reputation Power: 181
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

Reply With Quote
  #5  
Old October 16th, 2006, 02:11 AM
micky's Avatar
micky micky is offline
Couch Potato Wizard
Click here for more information. Click here for more information
 
Join Date: Jan 2005
Location: India
Posts: 11,024 micky User rank is General 12nd Grade (Above 100000 Reputation Level)micky User rank is General 12nd Grade (Above 100000 Reputation Level)micky User rank is General 12nd Grade (Above 100000 Reputation Level)micky User rank is General 12nd Grade (Above 100000 Reputation Level)micky User rank is General 12nd Grade (Above 100000 Reputation Level)micky User rank is General 12nd Grade (Above 100000 Reputation Level)micky User rank is General 12nd Grade (Above 100000 Reputation Level)micky User rank is General 12nd Grade (Above 100000 Reputation Level)micky User rank is General 12nd Grade (Above 100000 Reputation Level)micky User rank is General 12nd Grade (Above 100000 Reputation Level)micky User rank is General 12nd Grade (Above 100000 Reputation Level)micky User rank is General 12nd Grade (Above 100000 Reputation Level)micky User rank is General 12nd Grade (Above 100000 Reputation Level)micky User rank is General 12nd Grade (Above 100000 Reputation Level)micky User rank is General 12nd Grade (Above 100000 Reputation Level)micky User rank is General 12nd Grade (Above 100000 Reputation Level)  Folding Points: 1480 Folding Title: Novice Folder
Time spent in forums: 4 Months 1 Week 1 Day 14 h 16 m 33 sec
Reputation Power: 1787
Quote:
Originally Posted by Doug G
The application pool settings are only in IIS6 (windows 2003), not in IIS 5.1 on XP
Thanx DG, now it makes sense on y i cudnt find it

Reply With Quote
Reply

Viewing: ASP Free ForumsSystem AdministrationMicrosoft IIS > Session expires too early!!


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT