Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Creating a new session in new browser window  RSS feed

 
kul karni
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi Guyz,

I want to disallow the same session to be shared across multiple TABS of a single browser WINDOW.
I mean to say that, if I have 2 login ids for 2 accounts, then I should be able to login to both the accounts
in multiple TABS in the same browser WINDOW(and not another window).


Thank you.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Likes 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think there is any way to do that that will work in all browsers.

Time to stop and think!

Why not create a class to hold all variables associated with a single account and store an instance for each account in the single session. In order to select the correct one, you will need to have some way of identifying which tab generated a request - hidden variable in a Form would be my choice.

Bill
 
Tarun Bolla
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think URL rewriting works too...passing a unique identifier generated at server in every url ... so that you can identify the session for each request
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!