© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2mo ago•
99 replies
Swyftey

Why would one use JWTs over .NET's own stateless session cookies/encrypted cookies?

beginnervisual studioasp.net
Title is sort of self explanatory. I am just wondering about the pros and cons of using JWTs vs the cookie setup .NET already provides for a backend API.

So far, it seems that the .NET stateless cookie sessions has a lot more benefits than JWT stateless cookie sessions (due to automatic secret rotation, etc.).
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
Next page

Similar Threads

❔ Session vs Cookies vs Cache
C#CC# / help
3y ago
ASP .NET Session Auth
C#CC# / help
2y ago
How would I use WindowsRuntimeMarshal.GetActivationFactory in .net 6?
C#CC# / help
4y ago
❔ ASP.NET session timeout early
C#CC# / help
3y ago