Example of setting a custom TTL for RedisActorSessionStore? #401
Answered
by
robjtede
miketwenty1
asked this question in
Q&A
-
Does anyone have an example of setting a custom TTL for a actix middleware redis session? The default is 24 hours, I would like to set some of these sessions to a different Duration. Also, calling |
Beta Was this translation helpful? Give feedback.
Answered by
robjtede
Mar 2, 2024
Replies: 1 comment
-
Copied from Discord: sure, this applies to all backends: https://docs.rs/actix-session/latest/actix_session/config/struct.PersistentSession.html#method.session_ttl
This is not possible with the current lib. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
robjtede
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Copied from Discord:
sure, this applies to all backends: https://docs.rs/actix-session/latest/actix_session/config/struct.PersistentSession.html#method.session_ttl
This is not possible with the current lib.