XPages: switching profiles
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 to share