Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XPages: Profile Switching

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

like image 519
simon peter Avatar asked Dec 04 '25 04:12

simon peter


1 Answers

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.

like image 200
Paul Stephen Withers Avatar answered Dec 06 '25 18:12

Paul Stephen Withers



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!