[Contest Logging] Restoring a Session #776
magicbug
started this conversation in
Ideas / Feature Requests
Replies: 2 comments 5 replies
-
Yep. That is a possibility. I was thinking PHP session, or a DB table, but I guess localStorage is probably even easier. |
Beta Was this translation helpful? Give feedback.
0 replies
-
That was easy to use, now it's just a matter of writing the logic. When should we store this?
Restoring is just a matter of calling the function on document.ready() which then sets the form and fills the table with data. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
At the moment with contest logging, if you close the session you lose the ability to go back which is a faff so we need to figure out the best way to store a session.
I'm thinking the easiest way is to use localStorage in Javascript, we can store the first QSO of the session (date/time/callsign/contest-id) and also the options for the exchange.
On page load, we get the local storage variables and pass them to MySQL to get the QSO list, and use the rest to build the exchange information.
@AndreasK79 thoughts?
Beta Was this translation helpful? Give feedback.
All reactions