• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem with sessions: Always getting old session id.

 
vijayakrishna Mikkilineni
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Here is the modified code of BeerSelectI tested for HTTPSession.isNew():



and here is the result.jsp page:




I am always getting "session is old" as the last line of output. What is the problem? How to get "session is new as output?
 
Kris Schneider
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By default, a JSP will create a session. Look into the page directive to see how to alter this behavior. If you exit and then restart your browser, do you at least get the new session message the very first time you hit the app?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!