How to reliably redirect from login page?

G

Guest

Hello, friends,

I am using Forms Authentication in our asp.net app. However, I found that
sometimes, the ReturnURL was not in QueryString. For example, I could
redirect from login page without problem if I connected web server from our
local network. But, I could not redirect if I connected from internet, say
from our client's machine. In IE address bar, NO ReturnURL item in
QueryString. As a result, it stayed in login page.

So, my question is: How to reliably redirect from login page? Any reference
papers, sample source code?

Thanks a lot.
 
G

Guest

Andrew,
Good defensive programming practice would dictate that you check to see if
the ReturnURL is null or empty, and if so, perform your own redirect to
perhaps the main page of the site in that case.

Peter
 

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

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top