Solved

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

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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

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…
A few customers have recently asked my thoughts on Password Managers.  As Security is a big part of our industry I was initially very hesitant and sceptical about giving a program all of my secret passwords.  But as I was getting asked about them mo…
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…

758 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now