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

HttpSessionState timeout

Is there a property or method that I can check to see if a
HttpSessionState has already timed out or not? I know that the
HttpSessionState.Timeout property gives you the length of the session
before it times out, but I am looking something that will return a
true or false if the session has timed out or not. Thanks.
Nov 16 '05 #1
1 3826
Steve,

Is there a particular reason why you need to do this, rather than adding a
Session_End handler? Bear in mind that if your sever side code is being
executed, then the user must have just accessed your aspx page, and therefore
restarted the session timeout count.

If your server side code takes so long to execute that the session times out
(i'm not certain if this is even possible) then the client browser will have
timed out long before.

Chris.

"Steve" wrote:
Is there a property or method that I can check to see if a
HttpSessionState has already timed out or not? I know that the
HttpSessionState.Timeout property gives you the length of the session
before it times out, but I am looking something that will return a
true or false if the session has timed out or not. Thanks.

Nov 16 '05 #2

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

Similar topics

9
by: E Sullivan | last post by:
I am having a time out issue when multiple users are accessing the server. This time out does not happen all of the time. My understanding is that the time out value is actually set in two places....
4
by: DavidS | last post by:
First: There are several ways to confuse one regarding session timeout. (1) web.config - <sessionState timeout="20"> (2) IIS Manager | Internet Information Services | ServerNode | Default Web Site...
1
by: Scott | last post by:
I have a few questions about calling HttpSessionState.Abandon: 1) Does the session immediately go away or does it hang around and go away based on the session timeout rules? 2) What happens to...
1
by: Uglykid | last post by:
Is there any chance to get a HttpSessionState reference form it's SessionID. for example: step1.keep the SessionID in DB step2.to abandon the Session via the SessionID in DB! Regards!
5
by: Mike | last post by:
I have the need to keep a substantial amount of session state, but I do not have the option of using the HttpSessionState object. My current scheme for dealing with this is to convert all the...
1
by: Chris Austin | last post by:
A co-worker asked me today what would happen if Session.Add() method was called multiple times with the same key. My first thought was that it would throw some sort of duplicate key exception. ...
2
by: Nathan Sokalski | last post by:
I have a page that determines some of what to display based on HttpSessionState. When I go to it the first time, it displays everything the way I would expect. Then I go to another page on my site...
22
by: Nick Craig-Wood | last post by:
Did anyone write a contextmanager implementing a timeout for python2.5? I'd love to be able to write something like with timeout(5.0) as exceeded: some_long_running_stuff() if exceeded:...
6
by: Alexander Vasilevsky | last post by:
Is it possible to get an HttpSessionState object by its id. http://www.alvas.net - Audio tools for C# and VB.Net developers
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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,...

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.