How to refer LoginUrl

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?
 
G

Guest

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

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,816
Latest member
SapanaCarpetStudio

Latest Threads

Top