XPages: switching profiles

I have two user profiles in my Xpages project, but I am trying to create a function that will make me switch between two user profiles, but I have no idea how to do this

+3


source to share


1 answer


If you want to switch users for your application, you need to log out and log back in (which is what happens in the Notes client).



However, remember that sessionScope is for a browser session , not a user session . But you can use this XSnippet to clear the sessionScope http://openntf.org/XSnippets.nsf/snippet.xsp?id=clear-session-current-nsf . Alternatively, your code can check the current effective username against one store in sessionScope and, if different, reload all sessionScope variables.

+1


source







All Articles