I'm creating application using Spring MVC and Hibernate where people can register and store some data in their accounts. I created registration and login processes. And now i have a question, how can I keep user session? I don't want to keep user id in each page of my application. For example: once the user has logged he arrives at page
someurl/overview/1
Where id is user's id. I would like it to looks like this for each logged user:
someurl/overview/
What are the best practices how to save user data in session using Spring and save it if user closed site and then opened it?
Thanks in advance.