Hey @Shailja Atkotiya - for the scenario in dotnet web app where you want to manage and store your own identity (without deferring to SaaS identity provider) you can use the Identity framework , see here: https://learn.microsoft.com/en-us/aspnet/core/security/authentication/identity?view=aspnetcore-7.0&tabs=visual-studio
This allows for local storage (what you are asking for) or deferring to an external login provider.
Note:
It is generally better practice to consider using an external provider - when you manage your own you are responsible for storing and securing credentials. An external provider takes care of all of that for you.