473,322 Members | 1,538 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,322 software developers and data experts.

Session Expiry - the session expired after a number of hours of inactivity, although Session Expiry was set to 24 hours

Hi,
I had created a web application where Session expiry was set to 2,000
minutes in IIS. in web config i had given like this
<sessionState timeout="2,000" mode="InProc"></sessionStatebut MY web
application was left logged in at 18:00 15th Oct, but on the following
day 08:30 16th Oct, the session expired as soon as MY web application
was used. It was also noted that during the day, MY web application
occasionally got session expiry when it was constantly being used.Does
the session expiry need to be set up anywhere else? There are no
Error logs created.
Will you please help me to resolve this issue. i expect your reply
soon .

With Thanks
Fijo Francis T

Oct 24 '07 #1
2 3064

<fi**********@gmail.comwrote in message
news:11**********************@i38g2000prf.googlegr oups.com...
I had created a web application where Session expiry was set to 2,000
minutes in IIS. in web config i had given like this
<sessionState timeout="2,000" mode="InProc"></sessionState>
[...] MY web application
occasionally got session expiry when it was constantly being used.Does
the session expiry need to be set up anywhere else? There are no
Error logs created.

Have you tried writing timeout="2000" instead of timeout="2,000"? I think
that the parser may be getting confused by the comma and setting a timeout
of 2 minutes instead of 2000 minutes as you intended. You can check if this
is the case by examining the Session.Timeout property somewhere in your
code.

Oct 24 '07 #2
The IIS setting (at least in 6.0) applies only to Classic ASP, not ASP.NET.
When IIS recycles your app (which can occur many times during the day
depending on memory pressure and ISS settings for same), your InProc sessions
will go away.
Normally there is no need to set such a long Session Timeout as it has a
sliding expiration that "renews" the timeout whenever there is a request for
a page. In addition, it can pose a real security risk. The best thing to do
is not rely on Session at all, depending on what your needs are.
Finally, this is the C# language group - your post really belongs at the
ASP.NET group - it is not language specific but more about which framework.
-- Peter
Recursion: see Recursion
site: http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder: http://www.blogmetafinder.com

"fi**********@gmail.com" wrote:
Hi,
I had created a web application where Session expiry was set to 2,000
minutes in IIS. in web config i had given like this
<sessionState timeout="2,000" mode="InProc"></sessionStatebut MY web
application was left logged in at 18:00 15th Oct, but on the following
day 08:30 16th Oct, the session expired as soon as MY web application
was used. It was also noted that during the day, MY web application
occasionally got session expiry when it was constantly being used.Does
the session expiry need to be set up anywhere else? There are no
Error logs created.
Will you please help me to resolve this issue. i expect your reply
soon .

With Thanks
Fijo Francis T

Oct 24 '07 #3

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

Similar topics

4
by: Brett Porter | last post by:
Howdy, For a challenge I took on a very large project and have decided to develop it on Red Hat, using PHP and MySQL. I am pleased to say that using Red Hat, PHP and MySQL has been extremely...
4
by: Ryan Hubbard | last post by:
I would like to limit multiple logins for a user. How and when does the session id expire? Can I set it so after x minutes of inactivity it would expire. How do I check if session id exists? If...
8
by: John Smith | last post by:
Hi, I am using a custom Session Handler. session_set_save_handler is working well. But i want to read the data direct from the database. My problem: php don't uses the standard serialize...
0
by: Thotatri | last post by:
hi, I am facing a session time out problem once after installing .net framework 1.1 . The problem is session is getting expired on frequently say 5 mts like that.I have good configuration &...
1
by: szabelin | last post by:
Hello - (1) is there a way to check that session has expired? (2) My session timeout is set to 20 minutes, but I can leave the client overnight and my session is still on next morning- so when...
0
by: nbdy9(nospam) | last post by:
I have a ASP.Net website (mobile). From time to time the browser popup the following message. Anyway to catch the error and redirect to my start page? saying, login.aspx? Thanks. ...
4
by: Chris | last post by:
When a request comes into a page on my ASP.net site and a session is not found, I want to detect whether the request is an initial request or if the user did have a session going that has now been...
11
by: Vishal | last post by:
Hello, can anybody tell me how I can extend the session expiry time? Is it done via code or via IIS? Sorry I am new and dont know about this.
2
by: Muhammed Soyer | last post by:
Hi, I wonder whether any good mailing lists for C# and dotnet technologies exist or not. Do you follow any mailing lists for dotnet ? Thanks
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.