Solved

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

Posted on 2011-09-26
2
812 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
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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
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…

776 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