You can use HTTP sessions, which are nothing more than server-side cookies. They are usually fine, but there have been many reports of session hijacking recently. So my answer, if you are really worried about this, is to use HMAC . This is difficult to configure, but once you can be sure that the message really came from an authenticated user.
source share