I use Spring 3 and Hibernate 3.6 to develop a web application - Im new and Im wondering if I really understand how sessions work.
Is it true that the sessions between the server and the client identified by the session identifier are different from hibernation sessions?
The session between the server and the client is always an HttpSession. (?) When is it created? When a user logs in, or when an anonymous user requests a page (which is not secure)?
Is there any connection between httpsession and hibernate sessions? Hibernate sessions created by a session factory without connecting to httpsession? I'm not sure which hibernate session is referencing a command like this:
this.sessionFactory.getCurrentSession().save(object);
this getCurrentSession() : how long has this hibernation session been active? all the time the user is logged in? or just for one transaction (which may include several data operations?)
I'm sorry that this question may be easy to answer, but most of the documents are written in English, and if this is not an understanding of the native language, it is sometimes difficult (mainly because the word "session" is used so often)
Thank you for helping me understand this topic! :-)
nano7 source share