Forms Authentication when requesting resource with a querystring

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
 
C

Curt_C [MVP]

once as a whole for "ReturnURL" and once individually in case you need
them... that's my guess.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top