mozilla / node-client-sessions

secure sessions stored in cookies
Mozilla Public License 2.0
759 stars 104 forks source link

Set expire time dynamically #118

Open saidkholov opened 7 years ago

saidkholov commented 7 years ago

How to set expire time dynamically? Perhaps I missed it in the documentation.

bassman2112 commented 7 years ago

Sorry that this is many months after your question; but in the documentation there is the option of using "activeDuration." Using their example, activeDuration: 1000 * 60 * 5 would give you an additional 5 minutes, so long as there has been activity registered.

sladiri commented 6 years ago

Hello, I think the question was about how to define the duration parameter dynamically. I have this question too, I would like to be able to change the duration at runtime, after the server fetched some configuration data.