Go Back   Velocity Reviews > Newsgroups > ASP Net
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

ASP Net - When to use FormsAuthenticationTicket()

 
Thread Tools Search this Thread
Old 12-23-2005, 04:05 PM   #1
Default When to use FormsAuthenticationTicket()


Hi, guys,

After I use FormsAuthentication.SetAuthCookie() to anthenticate a user, I
don't think I need to create a new FormsAuthenticationTicket(), right?

Then, at what situation, we should use ticket? Any reference papers?

Thanks.


=?Utf-8?B?QW5kcmV3?=
  Reply With Quote
Old 12-23-2005, 09:23 PM   #2
Brock Allen
 
Posts: n/a
Default Re: When to use FormsAuthenticationTicket()

The only time you'd need to work with the FormsAuthTicket is if you wanted
to manually issue the Form Auth Cookie. When you call FormsAuth.SetAuthCookie
it creates the ticket, encrypts it then issues that as the cookie. The main
reason you'd want to do this yourself is that the FormAuthTicket allows you
to put in some user-defined data inside of it. This is nice since FormAuth
does encryption and MAC protection on the ticket (so you don't have to).

-Brock
DevelopMentor
http://staff.develop.com/ballen

> Hi, guys,
>
> After I use FormsAuthentication.SetAuthCookie() to anthenticate a
> user, I don't think I need to create a new
> FormsAuthenticationTicket(), right?
>
> Then, at what situation, we should use ticket? Any reference papers?
>
> Thanks.
>



  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump