Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: Forms Authentication


Message #1 by "Sion Edwards" <sion@h...> on Fri, 10 May 2002 13:57:45
Hi,

When using FormsAuthentication.RedirectFromLoginPage, I always get 
redirected to a default.aspx. Is there any way that I can specify the page 
I want to be redirected to?

Thanks

Sion
Message #2 by "Manuj Sarpal" <manujsarpal@h...> on Fri, 10 May 2002 14:01:52 +0100
Sion,

you can make some changes in your web.config file in authentication node

and specify the page you want to be redirected when authentication fails

 <authentication mode="Forms">
            <forms loginUrl="yourformname.aspx"  protection="All"
timeout="60"  />
 </authentication>
     <authorization>
        <deny users="?" />
     </authorization>
Hope it helps
Manuj
----- Original Message -----
From: "Sion Edwards" <sion@h...>
To: "ASP+" <aspx@p...>
Sent: Friday, May 10, 2002 1:57 PM
Subject: [aspx] Forms Authentication


> Hi,
>
> When using FormsAuthentication.RedirectFromLoginPage, I always get
> redirected to a default.aspx. Is there any way that I can specify the page
> I want to be redirected to?
>
> Thanks
>
> Sion
>

  Return to Index