Re: Max Allowed Sessions
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 (Webobjects-dev@lists.apple.com) >> Help/Unsubscribe/Update your Subscription: >> https://lists.apple.com/mailman/options/webobjects-dev/rgurley%40smarthealth.com >> >> This email sent to rgur...@smarthealth.com > > > ___ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net > > This email sent to ch...@global-village.net -- 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 (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Max Allowed Sessions
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 (Webobjects-dev@lists.apple.com) > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/webobjects-dev/rgurley%40smarthealth.com > > This email sent to rgur...@smarthealth.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Max Allowed Sessions
That was actually my point: -you'd like to ensure that a maximum specific number of real user are using the system, you'll need to implement a couple things to actually define what is a user "session" and act on it -you'd like to limit the number of WOSession your app instance is serving, you might have something available directly in Wonder We'll dig in this deeper if the need ever arise;) Xavier On 10 juil. 2013, at 13:25, "Thomas Grass (01SoftwareSolutions)" wrote: > Hello Xavier, > thanks for your reply. > > we have no real problem at the time. This question is just for my own > interests ;-) I knew that i can easily define the time a session is alive. > And i'm now interested if there is a way to define a max number of allowed > sessions at a time (with the limit, that an single user can't login after > enough sessions are killed) > > Thomas > > -- > Thomas Grass | 01SoftwareSolutions > +49 (89) 41 41 41 03-0 > off...@01softwaresolutions.eu | www.01softwaresolutions.eu > Lichtenbergstraße 8 | D-85748 Garching b München > > Am 10.07.2013 um 12:56 schrieb Dev WO : > >> Hello Thomas, >> >> I'm not sure if it's the right way to do what you want to do as I don't know >> exactly why you would do that:) >> If you want to limit the number of users allowed, you should not rely on >> WOSession, as you could get a session when an exception is thrown, so you >> could basically end up not being able to handle even a single real user. >> >> Maybe with more details someone could give you a better answer. >> >> Xavier >> >> On 10 juil. 2013, at 12:48, "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 (Webobjects-dev@lists.apple.com) >>> Help/Unsubscribe/Update your Subscription: >>> https://lists.apple.com/mailman/options/webobjects-dev/webobjects%40anazys.com >>> >>> This email sent to webobje...@anazys.com > > > ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Max Allowed Sessions
Hello Xavier, thanks for your reply. we have no real problem at the time. This question is just for my own interests ;-) I knew that i can easily define the time a session is alive. And i'm now interested if there is a way to define a max number of allowed sessions at a time (with the limit, that an single user can't login after enough sessions are killed) Thomas -- Thomas Grass | 01SoftwareSolutions +49 (89) 41 41 41 03-0 off...@01softwaresolutions.eu | www.01softwaresolutions.eu Lichtenbergstraße 8 | D-85748 Garching b München Am 10.07.2013 um 12:56 schrieb Dev WO : > Hello Thomas, > > I'm not sure if it's the right way to do what you want to do as I don't know > exactly why you would do that:) > If you want to limit the number of users allowed, you should not rely on > WOSession, as you could get a session when an exception is thrown, so you > could basically end up not being able to handle even a single real user. > > Maybe with more details someone could give you a better answer. > > Xavier > > On 10 juil. 2013, at 12:48, "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 (Webobjects-dev@lists.apple.com) >> Help/Unsubscribe/Update your Subscription: >> https://lists.apple.com/mailman/options/webobjects-dev/webobjects%40anazys.com >> >> This email sent to webobje...@anazys.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Max Allowed Sessions
Hello Thomas, I'm not sure if it's the right way to do what you want to do as I don't know exactly why you would do that:) If you want to limit the number of users allowed, you should not rely on WOSession, as you could get a session when an exception is thrown, so you could basically end up not being able to handle even a single real user. Maybe with more details someone could give you a better answer. Xavier On 10 juil. 2013, at 12:48, "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 (Webobjects-dev@lists.apple.com) > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/webobjects-dev/webobjects%40anazys.com > > This email sent to webobje...@anazys.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Max Allowed Sessions
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 (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com