what sort of security model are you using? Is the fact that you have not been authenticated automatically sending you to the signon page?
Main Topics
Browse All TopicsNot sure how this happened, but I have a number of .Net applications that all point to one central application for Authentication.
Recently, everytime those applications redirect they put thier quesrystring values on the url twice, like this:
http://mydevsite/login?Ret
I can't figure out how or why this is happening, and I cant figure out how to debug this.
What I do know is this:
When i try to access a protected resource, such as http://mydevsite/myapp/def
By the time I hit http://mydevsite/login/ 's code behind's page load, the querystring values have already been duplicated.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
sachiek:
I have a Is PostBack check on both the page that is redirecting, and the login page that it is going to.
deighton:
Using forms based authentication. Yes, the fact that I am not signed on is the reason I am being redirected to the login page. That part is working correctly. the problem is that either that application is passing a returnUrl that has duplicate queryString parameters, -OR- the login applicatin is somhow mangling the returnUrl so that the querystring values are duplicate.
What I do know is that when I place a breakpoint in the login application's pageload and inspect the HttpContext.Current.Reques
Have you tried application level tracing?
See here: http://quickstarts.asp.net
It might show the sequence of events...
Business Accounts
Answer for Membership
by: sachiekPosted on 2007-02-15 at 02:01:01ID: 18538989
Make sure that in PAGE LOAD you got IsPostBack check when appending querystring while redirecting.
I guess when page is been postback it is appending backed the code is not checking IsPostBack property.