How to refer LoginUrl

  • Thread starter Thread starter ad
  • Start date Start date
A

ad

I have define a LoginUrl in Web.config like:
<authentication mode="Forms">
<forms name="HealthCookie" loginUrl="Login.aspx" protection="Validation"
timeout="99999">

How can I refer the LoginUrl with program?
 
Hi ad,

In your configure setting, once an user requests any page in the
application, it will automatically redirect to Login.aspx. Once the user
successfully signs in, you can use

System.Web.Security.FormsAuthentication.RedirectFromLoginPage

method to redirect to requested page.

HTH

Elton Wang
 

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