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

Avertir de ne jamais effacer ses cookies #839

Open
odelcroi opened this issue Nov 21, 2023 · 2 comments
Open

Avertir de ne jamais effacer ses cookies #839

odelcroi opened this issue Nov 21, 2023 · 2 comments
Labels
bug Something isn't working web

Comments

@odelcroi
Copy link
Member

Steps to reproduce

Pourquoi?
on perd sa session en effacant les cookies tchap, on perd ses messages si jamais c'est la seule session ouverte

https://app.crisp.chat/website/6dacc68e-de3a-4511-8177-1339616098de/inbox/session_93c2b3e5-c90d-47d6-9a5a-081addfbb46b/

Outcome

What did you expect?

What happened instead?

Operating system

No response

Browser information

No response

URL for webapp

No response

Application version

No response

Homeserver

No response

Will you send logs?

Yes

@odelcroi odelcroi added bug Something isn't working web labels Nov 21, 2023
@estellecomment
Copy link
Contributor

I wonder if we can intercept the event of cookie deletion, and display "Are you sure" or "Save your recovery code" or something.

We can be notified of a change to cookies but I think it's too late by that point (the cookie is already deleted). I don't know if the info in the event contains the whole deleted cookie, so that we could reset it.
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/cookies/onChanged

There's also this, but it looks less supported (no firefox) : https://developer.mozilla.org/en-US/docs/Web/API/CookieStore/change_event

@estellecomment
Copy link
Contributor

Where to display the warning/info "Do not delete your cookies" ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working web
Projects
None yet
Development

No branches or pull requests

2 participants