Forms Authentication UserData

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Brian Shannon (bshannon_at_lbrspec.com)
Date: 08/16/04


Date: Mon, 16 Aug 2004 12:49:42 -0500

Using forms authentication I want to add several pieces of data to the
UserData property in the Forms Ticket.

I want to include roles, email, user ID.

>From reading it seems like you add all that to a string and add it to the
UserData property.

If that is the case how do you access each individual piece such as email.
I am not completely up to date with using ASP.NET's cookies so bare with me.

Thanks



Relevant Pages

  • Rewrite Authentication Ticket
    ... I need to make changes to the auth ticket, ... made to the UserData property of the ticket. ... Dim AuthTicket As New FormsAuthenticationTicket(1, ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Cast exception w FormsAuthentication
    ... I have a small ASPX app I have created and decided to roll my own Forms ... encrypted foms authentication ticket. ... userdata property. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Setting Roles with Forms Authentication and Access 2003
    ... The standard way to do this is to get a list of roles out of your database, ... comma-separated values) in the UserData property of the Forms Authentication ...
    (microsoft.public.dotnet.framework.aspnet)