Re: Forms authentication doesn't work in IIS6!!!
From: Egbert Nierop \(MVP for IIS\) (egbert_nierop_at_nospam.invalid)
Date: 11/26/04
- Next message: IIS happy user: "problems with SSL on IIS 5.1"
- Previous message: Raed Sawalha: "IIS Admin Service Won't Start"
- In reply to: James: "Forms authentication doesn't work in IIS6!!!"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 26 Nov 2004 13:17:40 +0100
Hi,
does HttpContext.Current.User.Identity.IsAuthenticated produce the same?
"James" <James@discussions.microsoft.com> wrote in message
news:46403A76-E079-4CC2-B63F-1F9CD79E7A75@microsoft.com...
>I login the user in my root application, and this code runs in the
>global.asax:
>
> If Not authTicket Is Nothing Then
> Dim id As New FormsIdentity(authTicket)
> Dim aRoles() As String = authTicket.UserData.Split(" ")
> Dim cnvPrincipal As New GenericPrincipal(id, aRoles)
> Context.User = cnvPrincipal
> End If
>
> The redirect to the protected folder happens, but in the application in
> the
> protected folder Request.IsAuthenticated returns FALSE!
>
> Could someone from Microsoft please respond.
- Next message: IIS happy user: "problems with SSL on IIS 5.1"
- Previous message: Raed Sawalha: "IIS Admin Service Won't Start"
- In reply to: James: "Forms authentication doesn't work in IIS6!!!"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|