© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•13mo ago•
4 replies
Kasumi

ASP.NET Identity, get User ID on POST Request

Hello,
I'm currently learning ASP.NET Identity and would like to make a Recomendations Website. Currently I've a Model File which has a userID datafield which has a Foreign Key to the IdentityUser.Id. Now my question is how can I add the Current Logged In User ID into this field without any Security Problems? I coul'dnt really find anything on google and if then just things that doesnt work or exist anymore.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

ASP.NET Core Identity?
C#CC# / help
3y ago
ASP.NET Identity Login Error
C#CC# / help
2y ago
ASP.NET Identity or custom?
C#CC# / help
3y ago