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.