You can look at the docs for more details, but that is the approach that you would want to take as this takes security and the app into account.
I need a way to be able to log out back to my login form, that requires the user to login again. I have used the following code
Login.LoginFormType =
Login.ShowLoginAndAuthUser(
But if the exit button is clicked, the user drops back into the application.
I was kind of looking for a securitybasics.currentuser.logout?
thanks
Geoff.