I have a well-established B4J websocket-based webapp with several pages hidden behind a login page. I pass information between pages with a websocket session; such things as the company the user is logged in as, user, etc that I check on WebSocket_Connected. Users login with their Company code, username and password and that all gets used throughout their course of pages. Everything works just fine.
For the staff of the company that hosts this webapp wants an administration page so that they can see a table of all of the companies and be able to simply click a link to open a new window/tab already logged into that customers' company. They're may want to have several customers' companies open in several windows/tabs at a time. I've done that and it works well except that the session established on the admin page follows along to the subsequent windows/tabs. The last company opened session information (company, user, etc.) is what all of the previously opened companies windows/tabs will use.
So, is there any way, once the main page for a company is opened from the admin page that I can create a new, separate session from the original admin page?
For the staff of the company that hosts this webapp wants an administration page so that they can see a table of all of the companies and be able to simply click a link to open a new window/tab already logged into that customers' company. They're may want to have several customers' companies open in several windows/tabs at a time. I've done that and it works well except that the session established on the admin page follows along to the subsequent windows/tabs. The last company opened session information (company, user, etc.) is what all of the previously opened companies windows/tabs will use.
So, is there any way, once the main page for a company is opened from the admin page that I can create a new, separate session from the original admin page?