Skip to content

Does State.Vars store values in the backend or frontend ? #3002

Answered by picklelo
yellowbean asked this question in Q&A
Discussion options

You must be logged in to vote

Yes the state manager is pretty much a dictionary from a user token to their state. If you're using the in-memory state manager then yes the state will be there until the server is killed, but if you use Redis by setting a redis_urlin the rxconfig.py, as we do in our hosting service, then there is an expiration that will wipe it out.

We can add an issue for implementing an expiration for the memory state manager. We couldn't do it on the socket disconnect as then if someone has intermittent connection issues. I made this issue as many of our Docker examples don't use Redis and can lead people to this issue: #3021

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@yellowbean
Comment options

@picklelo
Comment options

@yellowbean
Comment options

@picklelo
Comment options

Answer selected by yellowbean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants