• Post Reply Bookmark Topic Watch Topic
  • New Topic

Session Object problem when use back button  RSS feed

 
Neha Sharma
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,
I'm making JSP's and storing the pagenumbers in a Session object as integer. If the user uses the back button to come to the first page my session variable goes for a toss. How do I take care of this.
Thanks
Neha
 
Neha Sharma
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just to add a little more description. I'm using a MVC model , where a controlling servlet is everytime the page is displayed. The problem here is when I call the JSP's from the servlet the first time everything goes fine, but when I press back button and come to the starting page, my servlet doesn't know that the user has used back button and it should not show what is in the session object.
Thanks
Neha
 
Dave Soto
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think I understood your question... see if this post will help: http://www.javaranch.com/ubb/Forum7/HTML/004412.html
In the 7th reply, I described using tokens to enforce the order of your application. See if that helps.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!