• Post Reply Bookmark Topic Watch Topic
  • New Topic

Jsp Session Bean  RSS feed

 
ashish verma
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I created a online form using jsp which is taking information from user in 4 different pages for that i created a bean with session scope.Problem is that when i open two browsers simontaniously and try to fill the forms simontaniously in both browsers the data of first form automatically become available in second form which i don't want.
Help me to sort out this problen.
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
there are two instances of your browser but the session is same.

as we see with hotmail or other mail services, you can't check the two different inboxes on the same machine.
 
Balan Raj
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
workaround:
Make the KEY that you put into session 'UNIQUE browser identifier' + your Key & save the browser identifier in request (hidden).

So, even though the session is the same, u can retrieve the different values as long as u know your identifier

Did you open two different browsers independetly, or did you spawn one browser from another (Ctrl N ; File | New Window)
[ September 15, 2004: Message edited by: Balan Ram ]
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Balan Ram:
Did you open two different browsers independetly, or did you spawn one browser from another (Ctrl N ; File | New Window)

[ September 15, 2004: Message edited by: Balan Ram ]


it seems to be the same thing. you will have two instances of the browser in both ways.


Make the KEY that you put into session 'UNIQUE browser identifier' + your Key & save the browser identifier in request (hidden).

So, even though the session is the same, u can retrieve the different values as long as u know your identifier


though session is the same then it means you will get the same value of unique identifier for both the browser instances. because you are setting it to session. isn't it. if no elaborate it more.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!