Re: Forms Authentication - Really really basic question
- From: Alexey Smirnov <alexey.smirnov@xxxxxxxxx>
- Date: 2 May 2007 04:25:27 -0700
On Apr 23, 8:40 pm, LW <L...@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Hello!
I am just learning about forms authentication so please excuse this basic
question. I am using .NET 1.1 and C#.
I have created my web.config file and my login.aspx and the associated cs
file using
examples on MSDN. I have created a FormsAuthenticationTicket and cookie and
added the cookie to the response and then set the SetAuthCookie etc. When I
go to the redirected page, I am not sure how to read the cookie value so I
know who the user is!
Once a user has authenticated, you can get it as
Context.User.Identity.Name
.
- Prev by Date: Unable to cast object of type 'System.Security.Principal.GenericIdentity' to type 'System.Web.Security.FormsIdentity'.
- Next by Date: Assigning application specific rights to existing Windows domain users
- Previous by thread: Unable to cast object of type 'System.Security.Principal.GenericIdentity' to type 'System.Web.Security.FormsIdentity'.
- Next by thread: Assigning application specific rights to existing Windows domain users
- Index(es):
Relevant Pages
|