Sort sessions by time, but remain the current session at the top.
It is probably just an ‘order by’ in SQL query.
Maybe on the bottom, closer to the Delete all sessions, but the current one. part?
Maybe on the bottom, closer to the Delete all sessions, but the current one. part?
I guess the current session still will remain at the top, because it is the first place where a user looks at. And this is how it works in other session managers in other apps. It will be unpredicted if a current session appears at the bottom.
But maybe… Maybe move current session away from the list in a separate div block?
Current session is: blah-blah.
Other sessions:
- …
Anyway this ticket is more about sorting than placing the current session, but it was good to think about it.
But maybe… Maybe move current session away from the list in a separate div block?
And remove a ‘delete’ button, because you never want to stop current session here, you just log out instead.
What do you think?
Thinking about this structure:
- Sessions
- Current session
- Safari on macOS 2 days ago
- Link to the log out page
- [ ] Delete all sessions, but the current one.
- Delete all button
- Other sessions (sorted)
- Chrome on Android 2 days ago
- Delete button
- ...