How to Log Out


Author
Message
Geoff Hirst
Geoff Hirst
StrataFrame User (171 reputation)StrataFrame User (171 reputation)StrataFrame User (171 reputation)StrataFrame User (171 reputation)StrataFrame User (171 reputation)StrataFrame User (171 reputation)StrataFrame User (171 reputation)StrataFrame User (171 reputation)StrataFrame User (171 reputation)
Group: Forum Members
Posts: 123, Visits: 3.5K
Hi,

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 = GetType(Alarm64_Login)

Login.ShowLoginAndAuthUser(True)

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.


Trent Taylor
Trent Taylor
StrataFrame Developer (8.5K reputation)StrataFrame Developer (8.5K reputation)StrataFrame Developer (8.5K reputation)StrataFrame Developer (8.5K reputation)StrataFrame Developer (8.5K reputation)StrataFrame Developer (8.5K reputation)StrataFrame Developer (8.5K reputation)StrataFrame Developer (8.5K reputation)StrataFrame Developer (8.5K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
If you are using Role Based Security, then just lock the session locking:

MicroFour.StrataFrame.Security.Sessionlock.LockSession()

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.

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search