eclipse / vorto

Vorto Project
www.eclipse.org/vorto
Eclipse Public License 2.0
226 stars 105 forks source link

Improvement: Session inactive message #2154

Closed somesh-kumar closed 4 years ago

somesh-kumar commented 4 years ago
2019-12-09_17h17_47

When my session times out due to inactivity I see a message:- "Warning - your session has expired. Please save your work and login again." The message could be misinterpreted. If a user is on the editor page he might just click the save button and loose the changes.

Expected: If the session has already expired prompt the user to copy the changes elsewhere in a text editor and login again to resume. Show the Login button to take user to the Login page.

somesh-kumar commented 4 years ago

Additional Info-

On hitting the save button there is a blank warning message box. Refer to screenshot below.

Expected: Navigate to login screen in case any event triggered after session time out

Actual: An empty warning box is shown to user

2019-12-09_18h17_08
ghost commented 4 years ago

Having a look soon.

ghost commented 4 years ago

Had a few thoughts about this. My idea might seem a bit drastic so @somesh-kumar @kolotu feel free to counter-argue.

TL;DR

  1. Make the banner modal so nothing "behind" it can be clicked
  2. Remove the "save your work" part. Unlikely that the user will want to copypaste text from the model's detail and place it somewhere else temporarily, also given the long time of inactivity.
  3. Bottomline, since at that point the session is unrecoverable, the banner should just display the link redirecting to the login page, saying something along the lines of "your session expired, please login again".

We have a long enough session timeout with warnings in between so losing one's work at this point should be acceptable.

Will start working in that direction soon if no objections.

ghost commented 4 years ago

Elaborating on the above:

Screenshot cutouts below:

warning

expired

ghost commented 4 years ago

PR here

ghost commented 4 years ago

Merged, @somesh-kumar or @kolotu cannot close this myself, could you please?

kolotu commented 4 years ago

@somesh-kumar @mena-bosch it's closed