i m tryin to create a new session which a brand new SEARCH every time a user clicks; damn i m lost i cud not make it; and when i print the session ID; it always gives me the same session id; help me!!!
That's not what sessions are for. Sessions are explicitly persistant in that way so that you can maintain state between HTTP requests -- HTTP being a stateless protocol. What you can do is to create a bean or other class that encapsulates the search data you want to store and stick that on the session as an attribute. You can then change this attriibute as often as you like. hth, bear
I am not sure what your asking, but if you want a new session you could always invalidate the old by calling invalidate() on the session object. Then create a new session by request.getSession(true)