Forms Authentication when requesting resource with a querystring

  • Thread starter Thread starter PJ Pirrello
  • Start date Start date
P

PJ Pirrello

OK, let's see if I can explain this issue well.

I have forms authentication set up on the site I am working on. It's
working correctly with one snag. When I request a resource with a
querystring, and that resource requires that I log in to view it, I am
redirected to the log in page. So far, so good. However, as an
example, say I request the following page:

http://localhost/secure.aspx?param=1

I get redirected to

http://localhost/login.aspx?ReturnUrl=/secure.aspx?param=1&param=1

the querystring of the resource I requested is repeated in the url for
the login page (once urlencoded in the ReturnURL parameter, and once
as part of the querystring for the login.aspx page itself)

Is there something I am missing here? Why does the querystring get
repeated like that?

Thanks in advance for any help
-PJ Pirrello
 
once as a whole for "ReturnURL" and once individually in case you need
them... that's my guess.
 
Back
Top