"Grey" <er*******@i-cable.com> wrote in message
news:OR******** ******@TK2MSFTN GP10.phx.gbl...
I read from some site to learn the form authentication with AD that it
needs to create a FormsAuthentica tionTicket to store the group list. I want to
that what is the function of FormsAuthentica tionTicket?? is it a must to
create those ticket if I need to get the user's group list??? If I only
want to authenticate the username and password with AD, do I need to create the
FormsAuthentica tionTicket???
Forms Authentication always creates a FormsAuthentica tionTicket. The only
question is whether or not you create it manually and therefore can access
it yourself for your own purposes.
If you do nothing special, a FormsAuthentica tionTicket is created with a
UserData property set to null. If you create one manually, you get the
opportunity to set UserData to a list of groups. You would then encrypt the
FormsAuthentica tionTicket, and set the value of the forms authentication
cookie to the encrypted ticket.
Subsequently, on the next page request, your AuthenticateReq uest handler in
global.asax will be able to get access to the decrypted
FormsAuthentica tionTicket. This will give you access to your list of groups.
--
John Saunders
johnwsaundersii i at hotmail