How to log a user out/switch user


Author
Message
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (3.4K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
I need to both allow the user to log out (so another user can login) and handle session locking. I know the SessionLock.LockSession is used to do this sort of thing and session locking is on by default when a SF security project is created. What I'm confused about is what exactly happens. Here are some of the things I need to handle:



- session locks, user logs back in (this one is easy and already handled by LockSession)

- user logs off so another can log on (mostly used by testers), permission will likely be different.

- session locks, the user decides to close rather than unlock

- session locks, user has unsaved changes, decides to close

- session locks, another user logs on, original use has opened forms (maybe with pending edits), permissions might be different



So, suggestions on how to handle these cases?



Mainly, I'm wondering how permissions are handled with open form are shown when a different user unlocks the session, how to handle unsaved changes when a new user logs in or the user decides to exit first (of course, it might not be the user that was logged in that is exiting) and how to allow the application to close form a locked session.



Thanks!



GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Greg McGuffey - 17 Years Ago
Ivan George Borges - 17 Years Ago
Trent L. Taylor - 17 Years Ago
Greg McGuffey - 17 Years Ago
Trent L. Taylor - 17 Years Ago
                         OK, I see that I can setup a form to save any/all BOs on the form with...
Greg McGuffey - 17 Years Ago
                             [quote]does LockSession close the app? [/quote] No. If you create a...
Trent L. Taylor - 17 Years Ago
                                 I sorry, I'm just not following this.

I have a custom...
Greg McGuffey - 17 Years Ago
                                     You have already answered half of the problem yourself. You know when...
Trent L. Taylor - 17 Years Ago
                                         hehe...like I said, I was pretty sure I was missing something pretty...
Greg McGuffey - 17 Years Ago
                                             OK, I lied, I have another question (in addition to the one in the...
Greg McGuffey - 17 Years Ago
                                             [quote]Is using the "End" statement in vb enough? [/quote] This is...
Trent L. Taylor - 17 Years Ago
                                                 OK, I'm definitely getting it. I added an ExitApp method to my sealed...
Greg McGuffey - 17 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search