I Have two User profile define in my Xpages project but i am trying to create a function that would make me to be able to switch between the two user profile but i have no idea how to go about it
If you want to switch users for your application, you'll need to log out and log back in (which is what is effectively happening in the Notes client).
However, bear in mind that sessionScope is for the browser session, not the user session. But you can use this XSnippet to clear sessionScope http://openntf.org/XSnippets.nsf/snippet.xsp?id=clear-session-current-nsf. Alternatively, your code can check the current effectiveUserName against one stored in sessionScope and, if different, reload all sessionScope variables.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With