Core.getActiveSession deprecation after mendix 7.6 , how to use the XPath replacement?

0
https://docs.mendix.com/refguide/moving-from-6-to-7 mentions: getActiveSession(String userName)Use an XPath query on the session table instead. getActiveSessions()Use an XPath query on the session table instead.   How do I replace this with an equivelent XPath query as stated in the mendix 7 documentation? XPath.create(getContext(), Session.class) doesn't return ISession    
asked
1 answers
1

Here's some example code

for ( system.proxies.Session mxSession : system.proxies.Session.load(context, xpathConstraint) ) {
	ISession session = Core.getSessionById( UUID.fromString( mxSession.getSessionId() ) );
}

hope this helps.

answered