-
Notifications
You must be signed in to change notification settings - Fork 42
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
Not able to delete a cookie. #1
Comments
Yes please, liked this library better then stx. only missing is delete functionality. |
i have the same problem
I tried both and it doesn't work. Any ideas how to fix this? |
@Odrec You can try this: # unset username in cookies
cookies['username'] = "" and then: if "username" in cookies.keys() and str(cookies['username']):
# my coockies has username
else:
# my coockies hasn't username |
Someone managed to find another way? |
Cookie assignment is not supported, it generates this error: TypeError: 'StreamlitCookies' object does not support item assignment |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi ktosiek...
I'm testing your cookie manager, and looks good, but I'm not able to delete a cookie...
I have tried:
del cookies[name]
cookies.delitem(name)
call save after this... and any combination works...
is there any way to delete an existing cookie?
Thank you very much.
The text was updated successfully, but these errors were encountered: