Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save the result in the cookies #29

Open
2fersen opened this issue Oct 6, 2023 · 4 comments
Open

Save the result in the cookies #29

2fersen opened this issue Oct 6, 2023 · 4 comments

Comments

@2fersen
Copy link

2fersen commented Oct 6, 2023

Hey
I just finished the wahlswiper, tabt out of the webpage on the smartphone and the result is gone, would be really cool if this gets saved in the cookies.

@martin54
Copy link

martin54 commented May 12, 2024

+1
Happened to me also, when I clicked on the "other donations" link on the results page :-(

PS: From a privacy p.o.v., storing the choices is maybe not the best idea, e.g. if the computer is used by multiple persons (risk could be reduced if cookie timeout is short, and only stored as long as browser is open). Probably also a cookie banner is then required.

Therefore probably a better approach would be to avoid somehow that the answers will be lost, as long as the page stays open.

@SlowMoschen
Copy link
Contributor

Maybe store the result in the SessionStorage? - I mean this will work until the user opens a new tab of the website or closes it.

And if the user want to go back to the result page via the back button or browser history, we could check if the an item is in storage and use this data to display the results.


Another method would be to give an option to send the results as an email to a given user-mail. This is probably a bit more complicated to implement.

@mxmtsk
Copy link
Member

mxmtsk commented Jun 5, 2024

Another Idea is also to have the answers in the query string, that way it wouldn't be stored - we just would need to make sure that the query string is stripped from the url when the pageView is tracked in our Matomo instance. That way someone visiting VoteSwiper from the same computer in the same sessions, he wouldn't see an old result.

@SlowMoschen
Copy link
Contributor

I like the idea with saving the result in the query string. I will have a look on how we could implement the feature in the next days.

As soon as I got a suggested solution, I write a comment here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants