I'm using the Scalatra framework to build a web application. The application relies on sessions, but I can't use session cookies (because technically there is only one user, which runs multiple sessions simultaneously).
Each session has a unique session key which I want to use as an identifier. I want this key to be sent as a GET or POST parameter instead of a cookie header.
My question now is: How can I store session information (i.e. a state) in a Scalatra servlet without cookies but just a parameter as identifier?
So far I tried to use the file system to store all session information, but this is too slow and unnecessary because the sessions only last a few seconds.
(Security is not an issue)