473,403 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,403 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 3014

"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: 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: 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
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
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.