Solved

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

Posted on 2011-09-26
2
831 Views
Last Modified: 2012-05-26
Does executing a javascript response.sendRedirect instruction cause the values of session attributes to be lost?
0
Comment
Question by:jwright9
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 11

Accepted Solution

by:
MacAnthony earned 500 total points
ID: 36599577
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
 
LVL 82

Expert Comment

by:leakim971
ID: 36600647
some answer in this thread : http://www.jguru.com/faq/view.jsp?EID=816599
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question