Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem in opening tTwo Browser

 
bhuwan tiwari
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I had devloped the Mail Client Using Java mail API and servlet.
The problem ouccurs When i open two browser with different login
passoword. Both browser shows the same mails as of the lastt
account open. This problem is also apperent with Yahoo Mail.
Please give some direction
thanx
Bhuwan
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This sounds very much like you are using member variables in your servlet class to store information. Remember that the same servlet object will be used to process all the incoming requests, so if you have any information which you need to keep between requests you should store it somwhere which is not shared between requests. The most popular place for such information is in the "session". Look up Session in your servlet API documentation.
 
bhuwan tiwari
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Frank,
Thanx for response.
As for my application is concrned i am not using the any memeber
variable. I used member prevously but i faced lots of problem as
u rightly said, in that case this problem occurs on different
system too. After chaning member variable tosession variable
probem of different computer is solved but still it is giving
problem on same sytem.
Its is giving different session for different browser but stiil
not opening independent account.
bhuwan

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic