User login timeout? how do automatically log user out after 30 minutes, for example?


an internet search gave me two possibilities, but both gave me pause:

    (this has no information , no git repo, no installation or configuration instructions, so it may not even do what I want)

    (this seems to be what I want, but it has the opposite issue as #1, it doesn’t seem to be listed in atmosphere, so I dont know how to install it)

any suggestions here?

thank you


You can use the concepts and code from the second one to create your own functioning code.

You might even want to share it as a package :smile:


I’m confused… #2 says in it’s github repo that it is a “meteorite package”… so isn’t it already a package that I can add to my meteor project? I’m new to this world :smile:


if it is not available on atmosphere, you can just clone the repo in the packages folder (create it when it is not your projects root folder) and add it from there. Add a name to the packages.js of the package:

    "summary": "Simple configurable session timeout",
    "name": "yourinitials:sessiontimeout"

and install it with meteor add yourinitials:sessiontimeout.


So does that place it into atmosphere for others to use? or just for my local application?


just for your local application.


ok, I’ll try that, thanks for the help… this functionality really should be built into the core!


Have you seen this one:


yes, thanks… I did come across that and have been using it with some success.


It seems like this now is possible by running the following code:

    loginExpirationInDays: (1 / 24 / 60) * 30

As far as I can see, the setting loginExpirationInDays is only used in which allows the usage of comma values.

EDIT: The lowest value I got working was 0.05, which is 1 hour and 12 minutes … It doesn’t kick out the user but only prevents a re-login (f.e. by reloading the page).

Please vote for for smaller values.

EDIT2: I guess loginExpirationInDays was thought for something different. Please read the PR before using it.


If you (like me) are interested in a client-side timeout (or what to know how it works):

Towards the end of this post I compared my extension against others like which have a server-side timeout:

Choose the one fitting best to your use-case.