Site sessions are stored in KV under site_sessions and currently have no value; they are just set to true. Typical apps will have their own session object. They may want to store it in KV too.
It's easy enough to store this under a separate key. However, this results in an extra round trip to KV on every request, and there are two records to delete when the user logs out. So it might be nice to add a way to store load and store custom data in the user's current session.
Site sessions are stored in KV under site_sessions and currently have no value; they are just set to true. Typical apps will have their own session object. They may want to store it in KV too.
It's easy enough to store this under a separate key. However, this results in an extra round trip to KV on every request, and there are two records to delete when the user logs out. So it might be nice to add a way to store load and store custom data in the user's current session.