Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / June 2007

Tip: Looking for answers? Try searching our database.

getting all live SessionID's

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
PJ6 - 22 Jun 2007 17:33 GMT
Is it possible to get the SessionID's of all the currently running sessions
in an asp.net application?

Paul
Peter Bromberg [C# MVP] - 22 Jun 2007 18:53 GMT
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

> Is it possible to get the SessionID's of all the currently running sessions
> in an asp.net application?
>
> Paul
PJ6 - 22 Jun 2007 20:06 GMT
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

> Doubt it. What do you need them for?
> -- Peter
[quoted text clipped - 4 lines]
>>
>> Paul
Peter Bromberg [C# MVP] - 22 Jun 2007 20:14 GMT
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

> I'm preserving stateful session information server-side. I need to
> periodically clean up, get rid of any persisted objects associated with
[quoted text clipped - 12 lines]
> >>
> >> Paul
PJ6 - 22 Jun 2007 20:35 GMT
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

> Doesn't compute.  When a Session expires, everything in it is
> automatically
[quoted text clipped - 10 lines]
>>
>> Paul

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.