I’m using Http Basic Authentication for my API access from a mobile application. Unfortunately I need to keep state internally. As the state is per session I can’t use username/password as the state key. It seems like I have to add something like a cookie, session identifier or API key. I would prefer not to add is as part of my URL but to add it to the header instead (username/password/id instead of username/password).
What would you suggest? Does this even make sense?