I have a web application with HTML5 UI and connected to the backend by REST(Jersey).
On login to the application, I need to create a session and link it to the current user and un-link it on logout and the same session should be associated with the user for all the other requests/ responses after login.
This should also allow multiple sessions for the same user.
Can you please give me some guidelines/ ideas to understand this better and as to how I can handle this from the backend.