• Post Reply Bookmark Topic Watch Topic
  • New Topic

does sendRedirect() lose session ?

 
Artemesia Lakener
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In servlet, I need to check some information user enters in a form, if I find some error, I use "sendRedirect()" to an error page which says "One or more fields are wrong, click back button to complete." Now let's forget about the design of this, my question is --- This servlet is in the middle of a "session", if I use this redirect method to lead user to a new page, then when they click back button to come back, will they still be in that session ? any problem with it ?

thanks.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65516
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No problem.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!