What is the correct way of find out if user is logged in in MVC WEB API?
I am very confused about this problem. Restfull service make it up to you to decide which way to implement this functionallity. Ive read multiple articles about this problem, but every article says something different. For example some people propopse sessions, but if you do that Web api is losing its "rest fullness". Other people suggest cockies. I dont know if what i am done is actually done right: On login of user i create a cockie which contains UserID(Guid) and on every request which needs user to be logged in i check if this id exsists in the DB. Is it secure enough? Or how should i make