-
-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
How to update session attributes in Store without re-adding cookie #12
Comments
Getting / setting values in the session is done via the The Let's assume you want to have a session attribute Example:
|
Some additional notes after re-reading your question: Changing attributes in the session is a server side operation, it needs no client, cookie or manager updates. If another request will access the same session, it will see the updated / changed values. You don't have to do anything to "update a session at the Manager". Changes to session attributes are automatically visible to other requests accessing the same session. |
Using a custom |
True. But that will only cause "trouble" if you have multiple (web) server nodes. The GAE (Google App Engine) Memcache store implementation solves this by requiring to call the You can see the implementation here: And a demo using the GAE memcache store: |
The
Manager
hasAdd
method for adding, but nothing to update session values.Any suggestions on storing values?
The text was updated successfully, but these errors were encountered: