Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Forms authentication problem
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01085373
Message ID:
01085483
Vues:
28
Greg,

>I am trying to add a forms based authenticated MM web application to an IIS server that already has an ASP.NET application installed that also uses forms authentication. I have created a new web as a subdirectory to the original app.
>
>I have the navigation working the way I want (all forms have RequiresSecurity=true so redirection to UserLogin.aspx followed by redirection to the original form). When I set authentication mode="Forms" in my web.config, the login goes to the original app's login page.
>
>Research suggests that I need to add a forms tag to the authentication section of web.config with a unique name and a loginUrl. When I set the loginUrl to my new UserLogin page it works (goes to my UserLogin page) but I don't get redirection - I just get the "You are now logged in" message - and I can't go anywhere. I can live with a constant redirection to default.aspx. From examining Login(), it appears that the mmUserSecurity_RedirectionUrl Session variable should cause redirection. I've tried setting Session["mmUserSecurity_RedirectionUrl"] = "Default.aspx" in Global.Session_Start() but it doesn't seem to take - the variable doesn't exist when execution reaches Login().

It's hard to tell from here what's going on, but if you need to use standard ASP.NET forms authentication, I recommend not using the MM.NET "RequiresSecurity" property.

Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform