Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 956
  • Last Modified:

Does response.sendRedirect(DESTINATION_PAGE); cause session attribute values to be lost?

Does executing a javascript response.sendRedirect instruction cause the values of session attributes to be lost?
0
jwright9
Asked:
jwright9
1 Solution
 
MacAnthonyCommented:
Javascript doesn't have a response.sendRedirect function so I'm going to assume this is the java/jsp response object that you are sending. No, that should not by itself cause session values to be lost. What sendRedirect does is tells the client to request the url DESTINATION_PAGE. This request wouldn't look any different than some one clicking a link to that page from the browser.

You would have to do something to force the session to be reset or the client would have to restart loosing the session.
0
 
leakim971PluritechnicianCommented:
some answer in this thread : http://www.jguru.com/faq/view.jsp?EID=816599
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now