Hi Satya,
though I have no answer for your question, I recommend a supporting measure to ask users to always logout properly.
You could use a flag that gets set when a user logs in, and gets null when the user logs out as she should.
Then on login, you can show a message to ask the user to always use the proper way to logout.
Additionally, you could set a counter to detect those users who ignore this constantly.
This is the code we use on login.
In your logout method, you just set the flag then to null, so the flag would stay for users that do not use your intended logout button.
- Code: Select all
if (_to_person$currentpersonid.ps_did_not_logout_properly === 1) {
// Count up
_to_person$currentpersonid.ps_did_not_logout_properly_num += 1;
scopes.ui.getDialog("ps_please_use_logout");
}
_to_person$currentpersonid.ps_did_not_logout_properly = 1;