I can't find in the documentation how long the "se...
# ory-network
b
I can't find in the documentation how long the "sessions/<id>/extend" actually extends the session. Does anyone know how long it will extend it?
f
From my understanding this is an private server only endpoint. So you’ll need to validate the sesh first and make sure its not DDOS’d
b
Agreed, but I can't find anything that tells how long the extension is for? For example, if I have the session length set for 3 days, and I extend it after 1 day, does it extend it 2 days so that it is now back to the original 3 days or does it extend it for 3 days and now it is 4 days, etc, etc. Seems like there would be a param I could pass that would allow me to specify this.
f
No its based on config you setup on the server, see yaml file
b
I am looking at the yaml/json file. I see where you set the session lifespan. It is currently set to 72 hours. You can also set it in the Network console under session settings. Let's say that I get a session in from the user and call the following method: https://www.ory.sh/docs/reference/api#tag/identity/operation/extendSession Will it extend the session by the a full 72 hours or will it just extend it just enough to be another 72 hours total? Am I missing something?
f
Reset to 72
b
Did you find that in the docs or experiment? It was on my list for today to test and figure it out. Just curious.