I downloaded Adapter Based Authentication project from IBM Worklight and in that I found that when I click on Logout button it not Ending up the current session, while on timeout Its session ends up properly. (Note that it ends the session but does not clear outs the UserID) I had set serverSessionTimeout = 3 in worklight.properties. Below are the screenshots that will show the entire picture of whats happening:
- When I click on Get Secret Data, In IBM worklight Console under Devices Tab it shows DeviceID, Device Model, but not UserID
- Now when I insert username and password it logs me in and UserID changes to worklight and when I Logout nothing changes here. In my code I have added 1 more user name worklight1 and when I login with worklight1 this screen still shows worklight in UserID.The UserID changes only after timeout happens i.e. after 3 minutes in my case!
- After timeout, if I try to login with any user, the userID changes to that specific user and remains so until the session times out.
Can anyone please suggest how to end the session as I did try the following code on logout but did not help-
WL.Server.setActiveUser("SingleStepAuthRealm", null);
Thanks in Advance !