insighty / openesignforms

Automatically exported from code.google.com/p/openesignforms
0 stars 0 forks source link

Same user logins multiple times at same time, first logoff kills other logins too #8

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Using one browser, login to a user account.
2. Using another browser, login to the same user account.
3. Logoff one of the browsers.
4. Click on any operation in the other browser and note the Communications 
Error reported from the Vaadin layer.

What is the expected output? What do you see instead?
There should be no impact when one session logs out on any other sessions, even 
if using the same user account. 

Original issue reported on code.google.com by yoz...@gmail.com on 20 May 2011 at 1:15

GoogleCodeExporter commented 8 years ago
Fixed in 0.9.8.

Removed the "is logged in" from being a property of the User object. The 
problem is that if the user logs in twice, the first logoff cleared the state 
in the User object so the others were then thought to have logged off too.

The logged in user is stored in the HTTP session, so if it's present, the user 
has logged in. If not present, the user is not logged in to that particular 
session. This keeps the multiple sessions for a single user from conflicting 
with each other.

Original comment by yoz...@gmail.com on 20 May 2011 at 1:24