Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Forms Authentication
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00672857
Message ID:
00673107
Vues:
14
Change the Authentication mode to "Forms" for the web.config file in the login directory. You are turning off Forms authentication when you enter the directory with the login files since a local web.config takes precedence over other web.config files. Also look at the GetAuthCookie, SetAuthCookie, and GetRedirectURL methods of the FormsAuthentication class. My thinking is that you will need to manually change the cookie dynamically to the application you are currently running.

>Sorry for running you in a circle, but I think something just clicked here. The problem I have with making it the same is that the name of the cookie will be the same for all apps. I just want to have one login page, and be able to authenticate users for any other app I add, with different (app specific) cookies. Is that not possible using this? I was under the impression that simply including a name for a cookie in the protected apps web.config would pass that name along to the login page. This is obviously not correct. Is there a way to do that, that you know of? Thanks for all the help, Cathi!
>jfh
>
>>Make the wlogin web.config file the same as wphyscnt except change the relative location of the loginURL.
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform