I would like to use the session objects for local deployment but the application doesn't default generate session objects in 2.5.0.1. I know that it is possible to give custom parameters (PersistentSessions = true) in the mendix service console on a server to generate the session objects. What it the way to accomplish the same on local deployment? Is there also a way to get all sessions without saving session objects, maybe with java code?
asked
Marco de Kievit
1 answers
5
For an application with non-persistent sessions it's not possible to obtain the number of active sessions in 2.5.0.1. In the Core class a method getNumberConcurrentUsers() exists which calculates the number of active sessions, but only for persistent sessions. In 2.5.1 the implementation of this method will be extended such that it will return the correct number of active sessions for non-persistent sessions as well.