Solved

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

Posted on 2011-02-26
6
844 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
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:
ddsh79 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 26

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
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 

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 26

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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
changeXy challenge 13 58
Java asynchronous logging 4 35
eclipse java  build path 6 25
Java DateChooser? 2 14
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This video teaches viewers about errors in exception handling.

747 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

12 Experts available now in Live!

Get 1:1 Help Now