Skip to content

Dynamically modify Session Lifespan and update existing sessions. #3153

Answered by aeneasr
arieltorti asked this question in Q&A
Discussion options

You must be logged in to vote

Is there a way to do this programmatically through an API similar to what's provided when using Ory Network?

The functionality in the Ory Network is the same as in self-hosted for this feature. What you're probably looking for is: https://www.ory.sh/docs/kratos/session-management/refresh-extend-sessions

Moreover, would it be possible to bulk-update or bulk-expire user sessions when the lifespan is modified? After a few tests, I noticed that when the session lifespan is changed and the instances are restarted existing sessions are still active and under the effect of the old lifespan.

I don't think we can add that - updating 100M+ rows on a config change can bring a system down :)

Replies: 3 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by arieltorti
Comment options

You must be logged in to vote
7 replies
@aeneasr
Comment options

@arieltorti
Comment options

@vinckr
Comment options

@arieltorti
Comment options

@arieltorti
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants