I currently have a website, where people take a quiz. At the moment when someone starts taking a quiz, I create a session variable to keep a track of them.
This is fine at the moment, but I post to an ASP.net MVC controller, where I can set the session variable and retrieve it.
I want to move the functionality into WebAPI because I want to make all of the answers to be submitted over AJAX now and I can't set and retrieve session variables in a WebAPI controller.
What is the alternative to keep a track of a session?
I guess I could just generate a random string and pass that back and forth, but it seems a little primitive?
WebAPI is stateless and I want it to remain this way, but I want to way to track users without resorting to Sessions which are against the principles of WebAPI/REST.