Logout by Java Mendix 7.20

0
Hi,  I am trying to manually logout my user session for the current user. Some of the main functions i used in the past are deprecated. And i cant seem to cast a String input to UUID to retrieve the proper session:   private UUID Me = (UUID) SessionID; ISession mesession = Core.getSessionById(Me); Core.logout(mesession); Any help will be appreciated.    
asked
1 answers
4

Ramli,

To get the UUID from a string use this method for java.util:

public static UUID fromString(String name)

in something like:

UUID uid = UUID.fromString("38400000-8cf0-11bd-b23e-10b96e4ef00d");

 

answered