Forms Auth redirecting

  • Thread starter Thread starter Jon
  • Start date Start date
J

Jon

Is it possible to redirect the user to a specified page everytime, not the
page they originally went to?

For instance, the user goes to site.com/abc.aspx
they aren't logged in, so they get directed to login.aspx

if they authenticate, I do not want to send them back to abc.aspx, I always
want them to go to main.aspx, instead.

How would I accomplish this?
 
If you are using forms authentication, I have to assume you have a "submit"
button to post the username and password on the login.aspx page. In the
server side click event of that button, if they authenticate you could just
always Response.Redirect them to main.aspx, unless I'm missing something in
what you are trying to do?

-Darrin
 
No, that would do it. I guess I misunderstood how it all works. I thought
perhaps the built-in redirect method on the auth object was required to be
used. Thanks.



Darrin J. Olson said:
If you are using forms authentication, I have to assume you have a
"submit" button to post the username and password on the login.aspx page.
In the server side click event of that button, if they authenticate you
could just always Response.Redirect them to main.aspx, unless I'm missing
something in what you are trying to do?

-Darrin
 

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

Back
Top