Solved

URL Redirect (to login page) is missing the query string

Posted on 2011-02-26
6
859 Views
Last Modified: 2012-05-11
When the user clicked on an URL from the email, and if there is no session for the user in the app ,the user is redirected to the log-in page, however the query string is missing from the redirected URL. Because of this , the user is not taken to the intended menu after successful log-on. Any body faced this kind of issue? We're on weblogic server.
0
Comment
Question by:valki75
[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
6 Comments
 
LVL 92

Expert Comment

by:objects
ID: 34989947
A redirect won't keep the query string. its a completely separate request
0
 
LVL 14

Accepted Solution

by:
Dushyant Sharma earned 250 total points
ID: 34990216
use filter to check the session and store query string data while the user logs in. redirect from filter only and after successful log in fetch back the query string data and go to the intended page.
0
 
LVL 27

Assisted Solution

by:mrcoffee365
mrcoffee365 earned 250 total points
ID: 34992585
Usually, login systems are written so that the query string does get reattached after the login redirect.

Check your login code.  Otherwise you're going to have to do a redundant wrapper in some manner, as mentioned by ddsh79 above.

To clarify, a redirect can have query parameters, but if you don't put them in the redirect, then they won't be there.  In your case, it sounds as if your login program is losing the query parameters.


0
The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

 

Author Closing Comment

by:valki75
ID: 35020180
Sorry for the late reply. Thank you very much for your responses ! , Apparantly the redirect did not attach the querystring , we were getting 302 [Temporarily moved...with location as login.jsp]
0
 
LVL 27

Expert Comment

by:mrcoffee365
ID: 35021062
Yes, as we said, the query string has to be re-attached.  Which it can be, but apparently not by the developers of your code.  Your login program has to get the query string, and reattach it to the redirect.    Too bad about the B grade -- you got correct answers, and even strategies for dealing with the problem.
0
 

Author Comment

by:valki75
ID: 35023368
Sorry about that grade selection...it was my mistake...
0

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

705 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