473,394 Members | 1,761 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,394 software developers and data experts.

FormsAuthenticationTicket

I've successfully implemented forms authentication in my ASP.NET/VB.NET
project. I use the FormsAuthenticationTicket to create a cookie on the
user's browser when they log on.

My question is: How can I reference this ticket later in the application for
applying security-settings based on the user? I want to prevent some users
from running some of the project's functions. I want to have logic in place
that check's the user's FormsAuthenticationTicket and "IF User="BILL"
Then....".

Is this possible? Please let me know if this does not make sense. Thanks.
Jul 21 '05 #1
0 1262

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...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
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...

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.