Hi Greg.
I think this is nicely handled by the framework.
In my application's MainForm ToolStrip, I've created a "Login" button, with the following code:
Private Sub tsmiLogin_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tsmiLogin.Click System.Windows.Forms.SendKeys.Send(
"{F11}")End Sub F11 is the SF shortcut to your Login form.
So, the user can live after pressing "Login" and the login form will be waiting for the next.
session locks, user logs back in (this one is easy and already handled by LockSession)
That's it.
user logs off so another can log on (mostly used by testers), permission will likely be different.
No problem. Permissions will be tested when new user logs in. Let's say there was an open form, which has its "ViewSecurityKey" set, if the new user hasn't got permission to view this form, a panel will be covering it keeping the user from viewing anything that was going on.
session locks, the user decides to close rather than unlock
I guess an authorized user will need to login and close the application. If there are any forms this user is not allowed to see, he probably won't be able to close the application. An authorized user will need to login first.
session locks, user has unsaved changes, decides to close
If the user that logs in back is authorized to do so, he can then just close it.
session locks, another user logs on, original use has opened forms (maybe with pending edits), permissions might be different
Think I described this scenario already.
Guess you will get deeper explanations from the guys.
Have a nice weekend.
Cheers.