aspose file tools*
The moose likes Servlets and the fly likes does sendRedirect() lose session ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "does sendRedirect() lose session ?" Watch "does sendRedirect() lose session ?" New topic
Author

does sendRedirect() lose session ?

Artemesia Lakener
Ranch Hand

Joined: Jun 21, 2005
Posts: 162
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

Joined: Jan 10, 2002
Posts: 60077
    
  65

No problem.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: does sendRedirect() lose session ?
 
Similar Threads
Question related to banking project?
Can servlet detect user's clicked "Back" button in browser?
encodeURL() purpose and best place to use
Disabling session when clicking Back button and redirecting to Login page with message
ias JSP load problem