Re: Session count

2016-09-12 Thread Thomas LATTER
void terminate(){ // If this is the last session on the instance we update the DB session count to 0 before terminating it if(this.application().activeSessionsCount() == 1){ EOEditingContext editingContext = this.defaultEditingContext(); String instanceId = String.valueOf(this.context().re

Re: get active session count for all instances

2016-09-12 Thread Thomas LATTER
2016-09-12 17:33 GMT+02:00 Marco A Gonzalez : > Thomas, > > My current JavaMonitor shows me running session count. I think I updated > it myself a while ago and had issued a pull request but there was some git > confusion on the part of the committers that may have lost my pull-request

get active session count for all instances

2016-09-09 Thread Thomas LATTER
Hi all, I'm not sure this is possible but is there an easy way to get the total number of active sessions in all the instances of an application? We have 4 instances of the app in a javamonitor, this.application().activeSessionsCount() will return the count for the current instance only, whereas I

Re: Active session count increasing with Refuse New Sessions set

2015-05-27 Thread Paul Hoadley
On 28 May 2015, at 8:20 am, Chuck Hill wrote: > If will be bypassed if the target instance is refusing. You could just kill > the woinst cookie (or remove it from the URL and redirecting as appropriate — > this code does not remove it from the URL as that app did not use URL based > cookies o

Re: Active session count increasing with Refuse New Sessions set

2015-05-27 Thread Chuck Hill
If will be bypassed if the target instance is refusing. You could just kill the woinst cookie (or remove it from the URL and redirecting as appropriate - this code does not remove it from the URL as that app did not use URL based cookies or instance numbers) which should make the instance that

Re: Active session count increasing with Refuse New Sessions set

2015-05-27 Thread Paul Hoadley
Hi Chuck, On 28 May 2015, at 6:44 am, Chuck Hill wrote: > This method handles this situation by expiring the wosid and woinst cookies > and then having the browser reload the page. When the request is made the > second time it will not have any session ID or instance number and so will be >

Re: Active session count increasing with Refuse New Sessions set

2015-05-27 Thread Paul Hoadley
On 28 May 2015, at 6:44 am, Chuck Hill wrote: > This might be of use/interest: Thanks a lot. Sure is. -- Paul Hoadley http://logicsquad.net/ ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webo

Re: Active session count increasing with Refuse New Sessions set

2015-05-27 Thread Chuck Hill
This might be of use/interest: /** * Overidden to handle requests with expired session made while refusing new sessions. See responseForRefusedRequest() for details. This is here, rather than in GVCSMCore as it does not work for session IDs stored in the URL which is what GVCSMAdmi

Re: Active session count increasing with Refuse New Sessions set

2015-05-27 Thread Paul Hoadley
On 28 May 2015, at 12:35 am, Chuck Hill wrote: > If someone has a bookmark or a cookie with the instance number in it, that > will override Refuse New Sessions. Ah right, that’s it then. Looks like there are some robots that have picked up some URLs from the front page containing instance num

Re: Active session count increasing with Refuse New Sessions set

2015-05-27 Thread Chuck Hill
If someone has a bookmark or a cookie with the instance number in it, that will override Refuse New Sessions. On 2015-05-27, 2:14 AM, "Paul Hoadley" wrote: Hello, I'm mid-deployment, and I've set an existing instance to Refuse New Sessions in JavaMonitor. When I log in myself, I'm directed t

Active session count increasing with Refuse New Sessions set

2015-05-27 Thread Paul Hoadley
Hello, I’m mid-deployment, and I’ve set an existing instance to Refuse New Sessions in JavaMonitor. When I log in myself, I’m directed to the new instance, completely as expected. But the Active Sessions count on the old instance isn’t falling, it’s _increasing_. Should this be able to happe