• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Get all the sessionsID
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Get all the sessionsID


  • Subject: Re: Get all the sessionsID
  • From: Kieran Kelleher <email@hidden>
  • Date: Wed, 28 Feb 2007 14:44:43 -0500

Suggestion: setting the timeout to 5 minutes on them all might be a good idea to get those people kicked off sooner rather than later if your default timeouts are large and you want to terminate an app both quickly and gracefullly with Monitor's Refuse New Sessions.

On Feb 28, 2007, at 12:39 PM, Chuck Hill wrote:


On Feb 28, 2007, at 9:35 AM, Francis Labrie wrote:
WIESEN Bruno wrote:
I just wonder if it is possible to get all sessionsID of an application in order to display
the remaining time before the sessions times out??

If not in servlet deployment mode:

NSArray sessionIDs = ((WOServerSessionStore) WOApplication.application().sessionStore())._sessions.allKeys();

You can also get sessions:

NSArray sessions = ((WOServerSessionStore)WOApplication.application ().sessionStore())._sessions.allValues();

But in order to determine the session's time to live you need to get at private data. It can be done, but I've never found it worth it.


Chuck


--

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects






_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40mac.com


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Get all the sessionsID (From: WIESEN Bruno <email@hidden>)
 >Re: Get all the sessionsID (From: Francis Labrie <email@hidden>)
 >Re: Get all the sessionsID (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: Get all the sessionsID
  • Next by Date: Object Store Error
  • Previous by thread: Re: Get all the sessionsID
  • Next by thread: Object Store Error
  • Index(es):
    • Date
    • Thread