where to use cookies in ASP.NET MVC

I want to store user authentification information in a cookie. Where should i create a cookie? I saw some examples where the cookie object is created in the Startup-class. But wouldnt this create a new cookie each time i restart my application and lose all the data i stored in it?
I want to create a cookie with the httponly value set true, which means the cookie should be saved server side not in the browser.

Add Comment
0 Answer(s)

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.