473,385 Members | 1,829 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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.
Dec 23 '05 #1
1 1389
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.

Dec 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Frank | last post by:
Hi all, I am using Forms authentication with login.aspx page as below to issue a ticket, then send the cookie to the client such that next request from the client should bring the credential. ...
0
by: Morgan | last post by:
Thanks in advance for any info... Using web services, I am authenticating users and returning a valid FormsAuthenticationTicket as a string, with an expiration of 20 minutes. This is all fine...
1
by: Grey | last post by:
I read from some site to learn the form authentication with AD that it needs to create a FormsAuthenticationTicket to store the group list. I want to that what is the function of...
5
by: Kiran B. | last post by:
New to .net... I am wondering if I have a user name as userone and this userone has sepcial sales id 201, how can i associate both userone and 201 in a cookie and access it later on. I can access...
2
by: karunakar | last post by:
Hi All I dont want to expire the applicatoion Once login the application i dont want to expire the application Presently iam doing using cookies this is not working fine Please help me out ...
1
by: ad | last post by:
The codes below is copy from msdn about FormsAuthenticationTicket. It add FormsAuthenticationTicket to cookie. How can I add the FormsAuthenticationTicket to URL not to Cookie? ...
0
by: Andrea | last post by:
If I did something like that: FormsAuthenticationTicket ticket = new FormsAuthenticationTicket(ID, false, 20); then add the ticket encrypting it to the cookie collection, shouldn't the cookie...
1
by: JTourvieille | last post by:
Hi, Does any one knows how to list all FormsAuthenticationTicket available on a server? Thanks
4
by: dev648237923 | last post by:
Upon logon I create a ticket and put some userdata in it: FormsAuthenticationTicket ticket = new FormsAuthenticationTicket( 3, //Version tUsername.Text, //Username DateTime.Now, ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.