473,406 Members | 2,816 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,406 software developers and data experts.

Functions of FormsAuthenticationTicket

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 FormsAuthenticationTicket?? 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
FormsAuthenticationTicket???
Million Thanks

Nov 18 '05 #1
1 1639
"Grey" <er*******@i-cable.com> wrote in message
news:OR**************@TK2MSFTNGP10.phx.gbl...
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 FormsAuthenticationTicket?? 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
FormsAuthenticationTicket???


Forms Authentication always creates a FormsAuthenticationTicket. 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 FormsAuthenticationTicket 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
FormsAuthenticationTicket, and set the value of the forms authentication
cookie to the encrypted ticket.

Subsequently, on the next page request, your AuthenticateRequest handler in
global.asax will be able to get access to the decrypted
FormsAuthenticationTicket. This will give you access to your list of groups.
--
John Saunders
johnwsaundersiii at hotmail
Nov 18 '05 #2

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

Similar topics

0
by: Fresh Air Rider | last post by:
Hi I have implemented a system of Role-based Security with Forms Authentication in my website which retrieves a comma separated list of user roles via a SQL Server stored procedure. The system...
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...
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: Andrew | last post by:
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...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.