[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

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

Posted on 2011-02-26
6
Medium Priority
?
867 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:
Dushyant Sharma earned 750 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 750 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses
Course of the Month19 days, 6 hours left to enroll

834 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