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
Joined: Jan 07, 1999
Posts: 6913
posted
0
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.
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