Session::remember in core method with force refresh state #44396
Unanswered
DanielFeldbrugge
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Only the Cache class can run for a remember method with a TTL. I would like to see this also in the Session class as well. Currently, I've created a SessionHelper to resolve this. This way a session-based value can have a maximum TTL for example the usage in a bearer token or something else that expires after a while.
See attached my workflow. I think it is a great addition to have this in the Core and state Session::remember($key, $ttl, $callback);
Method call:
SessionHelper class
Beta Was this translation helpful? Give feedback.
All reactions