title: What is the correct way of find out if user is logged in in MVC WEB API?
body: <p>I am very confused about this problem. Restfull service make it up to you to decide which way to implement this functionallity. </p>
  
  <p>Ive read multiple articles about this problem, but every article says something different. </p>
  
  <p>For example some people propopse sessions, but if you do that Web api is losing its "rest fullness". Other people  suggest cockies.</p>
  
  <p>I dont know if what i am done is actually done right: </p>
  
  <p>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. </p>
  
  <p>Is it secure enough? Or how should i make it more secure? Or do i have to choose completly different way?    </p>