469,603 Members | 2,049 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,603 developers. It's quick & easy.

How to reliably redirect from login page?

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.
Jan 10 '06 #1
1 1470
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
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Andrew" wrote:
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.

Jan 10 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Simon | last post: by
1 post views Thread by Sospeter | last post: by
3 posts views Thread by William Sullivan | last post: by
4 posts views Thread by DGS | last post: by
3 posts views Thread by jasonheath.net | last post: by
reply views Thread by devrayhaan | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.