473,405 Members | 2,141 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.

getting all live SessionID's

PJ6
Is it possible to get the SessionID's of all the currently running sessions
in an asp.net application?

Paul
Jun 22 '07 #1
4 1213
Doubt it. What do you need them for?
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"PJ6" wrote:
Is it possible to get the SessionID's of all the currently running sessions
in an asp.net application?

Paul
Jun 22 '07 #2
PJ6
I'm preserving stateful session information server-side. I need to
periodically clean up, get rid of any persisted objects associated with
closed sessions. AFAIK tracking session closure is unreliable, so I thought
I'd just loop through the existing session id's to determine what could be
garbage collected.

Paul

"Peter Bromberg [C# MVP]" <pb*******@yahoo.yabbadabbadoo.comwrote in
message news:E7**********************************@microsof t.com...
Doubt it. What do you need them for?
-- Peter

"PJ6" wrote:
>Is it possible to get the SessionID's of all the currently running
sessions
in an asp.net application?

Paul

Jun 22 '07 #3
Doesn't compute. When a Session expires, everything in it is automatically
garbage -collected. Don't need to do anything.
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"PJ6" wrote:
I'm preserving stateful session information server-side. I need to
periodically clean up, get rid of any persisted objects associated with
closed sessions. AFAIK tracking session closure is unreliable, so I thought
I'd just loop through the existing session id's to determine what could be
garbage collected.

Paul

"Peter Bromberg [C# MVP]" <pb*******@yahoo.yabbadabbadoo.comwrote in
message news:E7**********************************@microsof t.com...
Doubt it. What do you need them for?
-- Peter

"PJ6" wrote:
Is it possible to get the SessionID's of all the currently running
sessions
in an asp.net application?

Paul


Jun 22 '07 #4
PJ6
I agree, there may be exceptions thrown when my code attempts to access
disposed objects, but nonetheless, references to them that I keep in my own
static pool of information (using the SessionID as a key) remain until they
are removed.

Paul

"Peter Bromberg [C# MVP]" <pb*******@yahoo.yabbadabbadoo.comwrote in
message news:64**********************************@microsof t.com...
Doesn't compute. When a Session expires, everything in it is
automatically
garbage -collected. Don't need to do anything.
-- Peter

"PJ6" wrote:
>I'm preserving stateful session information server-side. I need to
periodically clean up, get rid of any persisted objects associated with
closed sessions. AFAIK tracking session closure is unreliable, so I
thought
I'd just loop through the existing session id's to determine what could
be
garbage collected.

Paul

Jun 22 '07 #5

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

Similar topics

4
by: Rahul Chatterjee | last post by:
Hello All I have 2 websites both using different style sheets (.css). The stylesheets are stored in a session variable and get set at the time the site gets invoked. What is happening is...
2
by: Berrucho | last post by:
Please Help! I recently posted this same issue but got no answer... please help Using VB.NET, IIS5, W2K Adv SP3 all patches, .net 1.0, VS.NET 2002 Using forms authentication, persistent cookie...
4
by: Andy Fish | last post by:
Hi, I have an asp.net application that is using Forms Authentication and maintaining http session state using cookies in the normal way. when the user clicks the logout button I do this: ...
4
by: Kenny | last post by:
Hi, I have created an ASPX Dim ss As HttpSessionState ss = HttpContext.Current.Session HttpContext.Current.Session("tesAt") = "testValue" Response.Write(ss.SessionID() & "|<br>")...
2
by: XML newbie: Urgent pls help! | last post by:
If I get SessionID in 1 function how do I carry that SessionID(value of this SessionID) to another function or another form within the same project
10
by: rlueneberg | last post by:
I am trying to foward the old sessionID using "Session.SessionID" to an HttpWebRequest CookieContainer so that I can capture the requested page session variables but it is not working as it is...
0
by: patrick.nee.jr | last post by:
I have a question about session state: I have a complex application in which after logging into an ASP.Net 2.0 application using asp membership, a subsequent page passes the SessionID to an...
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:
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
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
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.