How to use session object in local deployment

I would like to use the session objects for local deployment but the application doesn't default generate session objects in 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?
1 answers

For an application with non-persistent sessions it's not possible to obtain the number of active sessions in 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.