Ankit Tripathi wrote:Irrespective of what you have read and done in the arena of 'session' scope,I Would like to say that working with sessions is simply great! Session scope is used to manage the 'state' of web pages useful in managing the login credentials specific to a user.A session expires when- 1.User logs out of website. 2.Web page is closed. 3.Another web site is opened in same tab or window. 4.You forcefully invalidate the session after a specific time. As far as your concern,usability of session depends upon-how many users are going to use your application simultanously?,are you interested in managing a saparate state for all of them at a particular time?,how many pages are going to share the information given in a particular JSP/Servlet?,what should be maximum time for that session/state to be managed?
Yeah, I like sessions too..it makes my life easy..but since I am doing this for an assignment, I am just worrying about the efficiency.
I am not really worried about user scalability but getting addicted to using sessions like a drug..
for example, I have the user searching for a book, so the terms changes..I used request for all this and pass the object to another page to work on. I assume that's fine..
but since you say using session is fine...I shouldn't be too worried then ha.especially as it will be discarded after a timeout