473,404 Members | 2,187 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,404 software developers and data experts.

HttpSessionState.Abandon

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 session state data - does it get cleared or should I be
calling HttpSessionState.Clear prior to Abandon?

3) PerfMon shows "Sessions Abandoned". I'm assuming every time I call
Abandon this counter gets incremented. Does it ever decrement and if it
does, what causes that to happen?

Thanks,
Scott L.
Nov 18 '05 #1
1 3015

"Scott" <no_email_at_all> wrote in message
news:e1**************@tk2msftngp13.phx.gbl...
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?
Immediately, after the page has ran.
2) What happens to session state data - does it get cleared or should I be
calling HttpSessionState.Clear prior to Abandon?
No, abandon is sufficient.
Clear does only emtpy the data, but it does not cancel the session.
3) PerfMon shows "Sessions Abandoned". I'm assuming every time I call
Abandon this counter gets incremented. Does it ever decrement and if it
does, what causes that to happen?
No, it cannot decrement. This is an incremental counter.
Thanks,
Scott L.

Nov 18 '05 #2

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

Similar topics

0
by: Privacy Trap | last post by:
Hi I have a slight problem in trying to set up 2 forms linked to tables. What I want to do is to inform a control on one form(Apps) as to the value of a key of a 'new' record entered via a...
1
by: Steve | last post by:
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...
1
by: Newbie | last post by:
If I have both ASP and ASP.NET environments within a web application, is it possible to manually expire ASP session from the ASP environment (ie using Session.Abandon)?
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. ...
4
by: ad | last post by:
I use the Login controls of Asp.net 2.0 in my program. I want to logout a user by program, I try Session.Abandon() for this. But I found that the user is the same after I execute Session.Abandon()....
4
by: David Thielen | last post by:
When I am in the Session_OnStart method, Is there a way to find another session based on it's SessionId? And can I then call Abandon on that other session? -- thanks - dave...
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...
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
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: 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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...

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.