• 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: Max Allowed Sessions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Max Allowed Sessions


  • Subject: Re: Max Allowed Sessions
  • From: Chuck Hill <email@hidden>
  • Date: Wed, 10 Jul 2013 10:20:45 -0700

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@hidden)
>> Help/Unsubscribe/Update your Subscription:
>>
>> 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

--
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@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


References: 
 >Max Allowed Sessions (From: "Thomas Grass (01SoftwareSolutions)" <email@hidden>)
 >Re: Max Allowed Sessions (From: Ramsey Gurley <email@hidden>)

  • Prev by Date: Re: WOWODC 2014
  • Next by Date: Re: WOWODC 2014
  • Previous by thread: Re: Max Allowed Sessions
  • Next by thread: WOWODC 2014
  • Index(es):
    • Date
    • Thread