sc_user_logout example

Hi,

Can someone please give me an example of using sc_user_logout as there is no proper example in the documentation.

I want to be able to logout, then log back in and restart the application.

Any example for the above process would aslo be really appreciated.

Thanks

In the event onexecute in a menu:


if({sc_script_name} == 's_Login'):
    sc_logged_out([logged_user], [logged_date_login]);
endif;

Hi aducom.
You mentioned the “sc_logged_out” macro. I didn’t find it !
Did you mean “sc_user_logout” ?
Hello.
I have searched the forum but was not able to find any answer to my following question:
How can an admin disconnect a connected user?
With the security module installed, I can see the logged user through the “app_logged_users”.
I have added a “Run” button and played around with the “sc_user_logout” macro. No success, it does not do anything. It does not disconnect the other user and does not remove the row in the “sec_logged” table.
Any idea how an admin can disconnect another user?
Thx a lot.