S
Solara5mo ago
conic

Cookies?

Can solara store state in browser cookies?
No description
2 Replies
MaartenBreddels
MaartenBreddels5mo ago
we do not yet have support for setting or reading cookies, however we do support a session id (that uses cookies) to be able to do storage on the server side, see https://github.com/widgetti/solara/pull/452
Monty Python
Monty Python5mo ago
maartenbreddels
<:pull_open:882464248721182842> [widgetti/solara] feat: get_kernel_id and get_session_id for custom storage
If you want to store data in a custom storage, you need to know the kernel_id or session_id to scope. This can be used to implement something similar to reactive variables.
Created