G
Guest
Problem with sessions
I have created an application without concern for sessions. As it turns out
I think that might be my undoing.
What I have:
I have an online quiz.
I don’t need to know users or save any data. If the application crashes or
user exits the program they should simply start again. Pretty basic.
All interactions are stored in an array (not much going on to save to a
file) and that is that.
The problem:
All changes and interactions are being saved to the application state. So if
computer 1 changes values, it also changes values on computer 2. I don’t want
this. Furthermore, if I close the window and reopen it all the values are
still there which is why I suspect the values are being stored in application
state.
Am I going to have to re-design all my variables to be session state
variables?
I have created an application without concern for sessions. As it turns out
I think that might be my undoing.
What I have:
I have an online quiz.
I don’t need to know users or save any data. If the application crashes or
user exits the program they should simply start again. Pretty basic.
All interactions are stored in an array (not much going on to save to a
file) and that is that.
The problem:
All changes and interactions are being saved to the application state. So if
computer 1 changes values, it also changes values on computer 2. I don’t want
this. Furthermore, if I close the window and reopen it all the values are
still there which is why I suspect the values are being stored in application
state.
Am I going to have to re-design all my variables to be session state
variables?