Persistent Login (the “remember me” checkbox)

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 art.world.

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:

P.S. I recently created a nerdy privacy-respecting tool called When Will I Run Out Of Money? It's available for free if you want to check it out.

This article is © Adrian Smith.
It was originally published on 17 Oct 2015
More on: Software Architecture | Coding | Web | art.world | Things I've Released