isNew returns true the first time the server sees the user, and you are assuming that te first time the server sees the user, your code is being run.
I am not sure about the specifics of your application, but this obviously isn't true.
Rather than getting bogged down in the behaviour of a single method, have you tried reading a session value and then writing it if the value does not yet exist?
Joined: Oct 08, 2008
avi sinha wrote:in jsp session is created by default. when your request reaches the servlet the session has already been created.
in jsp write :
and you will get the desired behaviour.
Hi Avi.. I tried with this evan after restarting the server same issue.. Always old session value