HOW TO STORE ADDITIONAL USER INFORMATION IN FORMS AUTHENTICATION

When using Forms Authentication, it can be desirable to store additional information with the authentication cookie, like the user's first name, or whether or not they are an admin. Thankfully, while not super intuitive, Forms Authentication does provide this using the FormsAuthenticationTicket's UserData property.

The UserData property is a string, so you can store pipe-separated data, or even a serialized object.

The Code

To see the full gist, click here.

Further Reading

How to Store Additional User Information in Forms Authentication
12.07.2018 ~ 03:49 PM
posted in professional
tagged in c# : forms-authentication
comments [10]

 
 
 
 
@ Waylon Meehan
Hello, Hope you are doing great. My name is rnd_fname% Meehan, I want to offer you: A CLEVER STEP-BY-STEP METHOD TO ALMOST INSTANT ONLINE FLIPS Flip Magic is the ultimate formula for online profits. It is carefully designed video training modules will walk you through the whole process inside the Members Area. The vendors will reveal their 5 minute Copy & Paste trick, which makes everything easy. Even a complete newcomer can do this – they’ll take you by the hand and walk you through the whole system. ==> http://bit.ly/Flip_Magic Kind Regards, rnd_fname% Meehan
10.22.2019 - 08:51 PM
 
 
@ Tiffiny Lane
Hi there! I'm Dan, Managing Director of https://www.track-r.net which is the fastest growing Google rank tracker. It shows exactly where you're placed for your target keywords in Google, which will directly help YOUR business generate more sales. By knowing and understanding where your site is placed, we can show you a marketing plan to get higher up the rankings. We have a decade of experience in the online marketing industry, and can help advise (for free) and you can have our free SEO template email series which will definitely help your business grow. Use https://www.track-r.net and get 2 free weeks to try it out. If you like it, keep going for the lowest package or if you don't please let me know what you think about it. I also run a competition to get a free 12 month license, which will be explained to you once you register. Thanks, Dan
10.23.2019 - 12:01 AM
 
 
@ Tyson Paramor
Hello, TIRED OF WAITING FOREVER TO EARN A PROFIT ONLINE ? My name is Tyson Paramor and I’m talking about a new way to generate quick traffic and sales in ANY niche with ZERO video/website creation, ZERO paid advertising/SEO. I’ve recently tried this product but quickly decide to write this review because I know this is exactly what you are looking for your dochoffiday.com No Previous Skills Or Experience Required. You can literally be a COMPLETE Newbie and Get RESULTS with just 5 minutes of actual “work”.. SEE FULL REVIEW: http://bit.ly/My_Traffic_Jacker Kind Regards, Tyson Paramor
10.28.2019 - 10:26 PM
 
 
@ Karri Gramp
Hello there I just checked out your website dochoffiday.com and wanted to find out if you need help for SEO Link Building ? If you aren't using SEO Software then you will know the amount of work load involved in creating accounts, confirming emails and submitting your contents to thousands of websites. With THIS SOFTWARE the link submission process will be the easiest task and completely automated, you will be able to build unlimited number of links and increase traffic to your websites which will lead to a higher number of customers and much more sales for you. IF YOU ARE INTERESTED, We offer you 7 days free trial ==> http://bit.ly/Robot_Submitter Kind Regards, Karri Gramp ! Business Development Manager
10.30.2019 - 03:20 AM
 
 
@ XEvilOffic
As you can see, XRumer + XEvil successfully broke any anti-bots measures on your website. Oh yes, XEvil 4.0 can solve Google ReCaptcha-2 too. Without any problem - just do check the videos about XEvil in YouTube. And you can use XEvil for your website! Increase popularity and make money, as other happy XEvil owners ;) Good luck!
10.30.2019 - 03:48 AM
 
 
@ Betsey Clutter
Hello, TIRED OF WAITING FOREVER TO EARN A PROFIT ONLINE ? My name is Betsey Clutter and I’m talking about a new way to generate quick traffic and sales in ANY niche with ZERO video/website creation, ZERO paid advertising/SEO. I’ve recently tried this product but quickly decide to write this review because I know this is exactly what you are looking for your dochoffiday.com No Previous Skills Or Experience Required. You can literally be a COMPLETE Newbie and Get RESULTS with just 5 minutes of actual “work”.. SEE FULL REVIEW: https://is.gd/cLKNcR Kind Regards, Betsey Clutter
11.05.2019 - 05:01 AM
 
 
@ Lori Rous
Having related backlinks is a must in today`s SEO world So, we are able to provide you with this great service at a mere price https://www.monkeydigital.co/product/related-backlinks/ You will receive full report within 15 days 500 to 1000 related backlinks will be provided in this service thanks and regards Monkey Digital Team support@monkeydigital.co
11.05.2019 - 11:30 PM
 
 
@ Eric Jones
Hi, My name is Eric and I was looking at a few different sites online and came across your site dochoffiday.com. I must say - your website is very impressive. I am seeing your website on the first page of the Search Engine. Have you noticed that 70 percent of visitors who leave your website will never return? In most cases, this means that 95 percent to 98 percent of your marketing efforts are going to waste, not to mention that you are losing more money in customer acquisition costs than you need to. As a business person, the time and money you put into your marketing efforts is extremely valuable. So why let it go to waste? Our users have seen staggering improvements in conversions with insane growths of 150 percent going upwards of 785 percent. Are you ready to unlock the highest conversion revenue from each of your website visitors? TalkWithCustomer is a widget which captures a website visitor’s Name, Email address and Phone Number and then calls you immediately, so that you can talk to the Lead exactly when they are live on your website — while they're hot! Best feature of all, International Long Distance Calling is included! Try TalkWithCustomer Live Demo now to see exactly how it works. Visit http://www.talkwithcustomer.com When targeting leads, speed is essential - there is a 100x decrease in Leads when a Lead is contacted within 30 minutes vs being contacted within 5 minutes. If you would like to talk to me about this service, please give me a call. We have a 14 days trial. Visit http://www.talkwithcustomer.com to start converting up to 100X more leads today! Thanks and Best Regards, Eric If you'd like to unsubscribe go to http://liveserveronline.com/talkwithcustomer.aspx?d=dochoffiday.com
11.10.2019 - 07:01 AM
 
 
@ Alisa Caperton
Get backlinks from websites which have Domain Authority above 50. Very rare and hard to get backlinks. Order today at a very low price, while the offer lasts. read more: https://www.monkeydigital.co/product/250-da-50-backlinks/ thanks and regards Monkey Digital Team support@monkeydigital.co
11.15.2019 - 04:21 AM
 
 
@ Leonora Chumley
Increase ranks and visibility for dochoffiday.com with a monthly SEO plan that is built uniquely for your website Increase SEO metrics and ranks while receiving complete reports on monthly basis Check out our plans https://googlealexarank.com/index.php/seo-packages/ thanks and regards Top SEO Experts
11.26.2019 - 02:32 AM
 
 

SPEAK!

Please enter your comment below.