Announcement

Collapse
No announcement yet.

Multiple Logins in 5.0 Portal

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Multiple Logins in 5.0 Portal

    In previous versions, users could navigate to the portal address, login and then open another browser window and navigate to the login page again and login in as a different user. Version 5 is not allowing this, but rather auto-logs in the current user into the second portal session. Also, when logging out of one browser window of the portal, it logs you out of the other one. How can we achieve what we were doing before?

  • #2
    You can change the portal to force login on each browser window/tab by updating the login method in the desktop Hook.js file. That file is located at /resources/desktop/Hook.js.

    Below is what you want the login method to look like. It simply removes the session id from localStorage and sets it in sessionStorage.

    Code:
    login : function (user, sid) {
    
        //remove session id from localStorage and place it in sessionStorage
        // this will force login on each browser window/tab
        //
        localStorage.removeItem('sid');
        sessionStorage.setItem('sid', sid);
    },
    Thanks

    Comment

    Working...
    X