maybe I was not looking so deep, but I did not found the information in Meteor framework Docs, how and where I can set the time to logout user after for example 5 minutes of innactivity.
Q1: I’m using the “[email protected]” package. I found the possibility to set “loginExpirationInDays”: 0.05, but It not works correctly, because the login will expire sooner like expected. It seems to be, that loginExpiration time does not extend during working with the app.
Q2: Also, how can I calculate 5 minutes. Calculate proportion of the day? With this way, it not works.
1 hours is 1/24 = 0.041
30 min is 0.041/2 = 0.020
5 min = (0.041/60)*5 = 0,003417
I set 0.05 and it’s about 10minutes, If I will set lower value than 0.04, it not works.
I’m asking to understand and make me clear, how It works and how can I setup correctly the expiration and how can I solve the problem with noextend expiration time, when I’m using the app.
Thanks for each answer.
You can create a cron-job at the server side (e.g msavin:sjobs) which run every minute and clear the
services.resume.loginTokensfrom the users you want to force to logout.