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:
01089524
Vues:
19
>I think using both is causing difficulties...that's why I recommended using Form's authentication in MM .NET.

OK, I've switched to Form's authentication and it appears to be working (still needs further testing). I'd like to describe what I did to see if it makes sense or to discover if there is a better way.

I set RequiresSecurity to false on all pages.

Since I want to continue to use mm security for controls, etc., I am continuing to use the mmBaseUserLogin.Login method. To get redirection to work, I set the mmBaseUserLogin.RedirectionUrl field to Request.QueryString["ReturnUrl"] in the UserLogin.Page_Load method (I see that the mmBaseUserLogin.Page_Load method will set the redirection field to a querystring of "Url". Should this be "ReturnUrl" or is this for something else?) and call FormsAuthentication.SetAuthCookie in my overriden HookUserAuthenticated method.

I couldn't find a way to use the normal FormsAuthentication.RedirectFromLoginPage method since Login method was doing a page navigation before the authorization cookie was set.
Greg Lee
GCL Software
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform