Persistent Login (the “remember me” checkbox)

By Adrian Smith17 Oct 2015900 words5 mins to read

It is a requirement of many customer projects of mine to have a "remember me" or "keep me logged in" checkbox on the log-in form. I am not aware of any standard approach to the subject; I suspect every company invents their own (and then blogs about it?) Here's what I do when asked to implement this feature, as online on

Here are the requirements as I see them:

Here are some thoughts on various options:

So this is the approach we take:

Here are some non-requirements as I see them, although various blogs and articles on the internet assert they're very important. I cannot see why they are important, but if anyone would enlighten me, I would be most appreciative.

Apologies for using the term "computer" in the above text rather than the more accurate term "client", but it seemed to make the whole thing easier to understand.

Further reading:

This article was written by Adrian Smith on 17 Oct 2015

Follow me: Facebook | Twitter | LinkedIn | Email

More on: Software Architecture | Coding | Web | | Things I've Released