You could use WOSesssionStore.serverSessionStore to get an instance of the 
private WOServerSessionStore class and call numbersOfSessionsInStore() to 
determine how many sessions there are currently in an instance.  Then throw? in 
WOApplication.createSessionForRequest if there was too many.   You might want 
to try and doing it earlier in the RR loop for a better user experience.

There are several things that you _could_ do, depending on your exact goals and 
situation.


Chuck

On 2013-07-10, at 10:00 AM, Ramsey Gurley wrote:

> How will you define maximum allowed? Per instance? Per host? Per app? Maximum 
> concurrent? Maximum live sessions? AFAIK, there's no single setting that 
> would let you limit sessions, but you should be able to do it in code if 
> needed.
> 
> 
> On Jul 10, 2013, at 3:48 AM, Thomas Grass (01SoftwareSolutions) wrote:
> 
>> Hello Community,
>> is there an easy way to handle maximum allowed sessions in a 
>> WO-Application/Wonder-Application? (e.g. max. 25 Sessions allowed, otherwise 
>> an exceptions page will displayed)?
>> 
>> Thomas 
>> 
>> 
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list      ([email protected])
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/rgurley%40smarthealth.com
>> 
>> This email sent to [email protected]
> 
> 
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      ([email protected])
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net
> 
> This email sent to [email protected]

-- 
Chuck Hill             
Executive Managing Partner, VP Development and Technical Services

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/gvc/practical_webobjects

Global Village Consulting ranks 13th in 2012 in BIV's Top 100 Fastest Growing 
Companies in B.C! 

Global Village Consulting ranks 44th in 25th annual PROFIT 500 ranking of 
Canada’s Fastest-Growing Companies by PROFIT Magazine!













 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to