persistent storage of a user session

0 votes
asked Dec 4 by thobu (120 points)

Is it possible to have a story that saves the status of a user other (server-side) than in the browser's storage. The use case is an educational, instructional one. I want the user to be able to return to a status even in another browser.

1 Answer

+1 vote
answered Dec 4 by greyelf (43,790 points)
Yes it is possible, but it's not a trivial process and any solution will require knowledge of web-based programming.

The issues you would need to overcome are:

1. The ability to uniquely identify each end-user of your system.
There are many ways this can be done but the easiest (in my opinion) is to host your story HTML file on a web-server that requires the end-user to login to access your story, this solves the issue of uniquely identity as well as the next issue of secure communications.

2. The ability to securely communicate with your data collection server.
There are many ways to do this as well but if you follow my suggestion in point 1 then you can use the same web-server to store your end-user's data, and you get secure communication (via HTTPS) thrown in for free.

3. The ability to store end-user data on a server.
Again there are many ways this can be done, from storing each individual end-user's data within their own plain text file, to using a (Relational or Object) Database of some sort.

4. Adding Javascript code to your story to save the data on your server.
commented Dec 5 by thobu (120 points)
Thanks for the high level perspective, still sounds a bit steep to me ;-)
Welcome to Twine Q&A, where you can ask questions and receive answers from other members of the community.

You can also find hints and information on Twine on the official wiki and the old forums archive.

See a spam question? Flag it instead of downvoting. A question flagged enough times will automatically be hidden while moderators review it.