473,405 Members | 2,338 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

SessionState timeout problem

Hi

Looks like I can not change Web page's timeout setting. In practise it's all
the time 20 minutes - no matter what I do.

I have this kind of setting in web.config:
<sessionState
mode="InProc"
cookieless="true"
timeout="1"
/>

With this settings program goes to Global.asax's Session_End() function
after 1 minute but the session is still running after this. It's only after
20 minutes when the session really stops.

I have tried to change the timeout setting in Machine.config also >> No
difference.
I have even booted my computer after I have made change to the setting -
just in case if something is still running in memory. >> No help.

That 20 minutes settings has to be somewhere hidden, but where? Couldn't
find it from IIS either.

I have Windows XP Pro and Visual Studio .NET 2003.

Please help me.

Regards
Mikko
Nov 18 '05 #1
5 9357
How are you determining that the session is still running? Is it just that
you dont go back to the login page or something like that?

--
- Paul Glavich
Microsoft MVP - ASP.NET
"Mikko Penkkimäki" <mp******@hotmail.com> wrote in message
news:41***********************@news.song.fi...
Hi

Looks like I can not change Web page's timeout setting. In practise it's all the time 20 minutes - no matter what I do.

I have this kind of setting in web.config:
<sessionState
mode="InProc"
cookieless="true"
timeout="1"
/>

With this settings program goes to Global.asax's Session_End() function
after 1 minute but the session is still running after this. It's only after 20 minutes when the session really stops.

I have tried to change the timeout setting in Machine.config also >> No
difference.
I have even booted my computer after I have made change to the setting -
just in case if something is still running in memory. >> No help.

That 20 minutes settings has to be somewhere hidden, but where? Couldn't
find it from IIS either.

I have Windows XP Pro and Visual Studio .NET 2003.

Please help me.

Regards
Mikko

Nov 18 '05 #2
Also, keep in mind that it's 20 minutes from the last activity - ie, it's a
sliding timer not an absolute one.

karl
"Mikko Penkkimäki" <mp******@hotmail.com> wrote in message
news:41***********************@news.song.fi...
Hi

Looks like I can not change Web page's timeout setting. In practise it's all the time 20 minutes - no matter what I do.

I have this kind of setting in web.config:
<sessionState
mode="InProc"
cookieless="true"
timeout="1"
/>

With this settings program goes to Global.asax's Session_End() function
after 1 minute but the session is still running after this. It's only after 20 minutes when the session really stops.

I have tried to change the timeout setting in Machine.config also >> No
difference.
I have even booted my computer after I have made change to the setting -
just in case if something is still running in memory. >> No help.

That 20 minutes settings has to be somewhere hidden, but where? Couldn't
find it from IIS either.

I have Windows XP Pro and Visual Studio .NET 2003.

Please help me.

Regards
Mikko

Nov 18 '05 #3
Hi

There's no login page in the software. New session is created for every new
user from "HttpContext.Current.Session.SessionID". This SessionID is used
for loading and saving user dependent session data (for
ex."HttpContext.Current.Session["UserDependentVariable_1"]").

I can see that the session is still running because the SessionID is still
the same and all user dependent data is still in session. When I change to
another page in the software after about 20 minutes, the SessionID has been
changed. Session data is also empty - of course.

I have now changed the SessionState's mode to "StateServer". I have read
from the Web that it's not as buggy as "InProc". Still no effect in my
software.

My problem is that there is a need that the session lasts hours - not 20
minutes. I have changed SessionState's timeout to "120" in Web.config and
Machine.config. I also found setting from IIS: Web page Properties >>
Configuration... >> Options: Enable session state, Session timeout. I
changed also this to 120. Still the session is lost after about 20 minutes.

I have tried to find answer to this from the Web. I haven't found any answer
yet but I have found many other programmers who have faced the same problem:
Sessions just don't last long. Is there any way to get over this?

Regards
Mikko
"Paul Glavich [MVP - ASP.NET]" <gl**@aspalliance.com-NOSPAM> wrote in
message news:%2***************@TK2MSFTNGP15.phx.gbl...
How are you determining that the session is still running? Is it just that
you dont go back to the login page or something like that?

--
- Paul Glavich
Microsoft MVP - ASP.NET
"Mikko Penkkimäki" <mp******@hotmail.com> wrote in message
news:41***********************@news.song.fi...
Hi

Looks like I can not change Web page's timeout setting. In practise it's

all
the time 20 minutes - no matter what I do.

I have this kind of setting in web.config:
<sessionState
mode="InProc"
cookieless="true"
timeout="1"
/>

With this settings program goes to Global.asax's Session_End() function
after 1 minute but the session is still running after this. It's only

after
20 minutes when the session really stops.

I have tried to change the timeout setting in Machine.config also >> No
difference.
I have even booted my computer after I have made change to the setting -
just in case if something is still running in memory. >> No help.

That 20 minutes settings has to be somewhere hidden, but where? Couldn't
find it from IIS either.

I have Windows XP Pro and Visual Studio .NET 2003.

Please help me.

Regards
Mikko


Nov 18 '05 #4
You were in the right place when you poked around in IIS.

Go to the website in question, right-click and choose "Properties".
Click on the "Home Directory" tab
Click on the "Configuration" button
Click on the "App Options" tab on the pop-up window
Choose the session timeout you wish. As you can see on this screen, the
default value built into IIS 5.0 out of the box is 20 minutes.
Mikko Penkkimäki wrote:
Hi

Looks like I can not change Web page's timeout setting. In practise it's all
the time 20 minutes - no matter what I do.

I have this kind of setting in web.config:
<sessionState
mode="InProc"
cookieless="true"
timeout="1"
/>

With this settings program goes to Global.asax's Session_End() function
after 1 minute but the session is still running after this. It's only after
20 minutes when the session really stops.

I have tried to change the timeout setting in Machine.config also >> No
difference.
I have even booted my computer after I have made change to the setting -
just in case if something is still running in memory. >> No help.

That 20 minutes settings has to be somewhere hidden, but where? Couldn't
find it from IIS either.

I have Windows XP Pro and Visual Studio .NET 2003.

Please help me.

Regards
Mikko

Nov 18 '05 #5
Hi Jason,
So which one works for Session.Timeout?
The IIS setting or the web config?
Bcos 'm confused!
And which one overrides the other does IIS setting overrides the WEB
CONFIG?
Let me know please.
thanks

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 18 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: TSelvan | last post by:
Hi All, We have developmented Web project with ASP.Net and SQL server Database. In this project we have configured "SessionState" mode as "SQLServer" in Web.Config with timeout="180" as...
3
by: Kenny | last post by:
Hi , I have created two Web Application - WebApplication1 and WebApplication2 in same machine for testing purpose. e.g http://localhost/WebApplication1.aspx...
3
by: Carpe Diem | last post by:
Hello I have an aspx page that loses Session("user") value after a few minutes even after I set <sessionState mode="InProc" cookieless="false" timeout="300"> in web.config and wrote function...
0
by: --alec | last post by:
Is there a maximum recommended value for setting the timeout value in web.config section <sessionState mode="InProc" timeout="20" /> What are the possible repercussions of setting this...
1
by: Randall Parker | last post by:
Does the SessionState timeout field in Web.config control how long a logged in session will stay logged in? For example, I want my users to be able to log in once during their work day and for...
0
by: Mr Ideas Man | last post by:
Hi all, Relating to a post i made earlier... I am deploying a asp.net app to my web host. They assure me that the directory i am copying my files to is configured as an IIS Application. ...
0
by: jayharris | last post by:
Can anybody help me getting the session timeout to work? In my web.config file, I have <sessionState timeout="5"> but I can leave my application idle for more than twenty minutes before it times...
2
by: =?Utf-8?B?U3Bpcml0RmxhZw==?= | last post by:
I want to configure different sessionState on different subdirectory,so I wote this code in wen.config file: <location path="SubInProc"> <system.web> <sessionState mode="InProc"...
3
by: Moe Sisko | last post by:
Using dotnet 2.0 sp1, I've got ASP.NET session state working ok in SQLServer mode, but the sessions never seem to expire. e.g if I add a timeout attribute like so : <sessionState...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.