moderated Re: Update login expiration on site visit #suggestion


On 4 Nov 2018 at 12:00, Shal Farley wrote:

That's the key. The page or banner obviously should not appear for
someone who explicitly logged out, nor for someone who visits the site
having not been (recently) logged in.

So how is the web site (i.e. Mark when coding it) supposed to know that? The
normal way for a cookie to be used for login purposes is to simply set it when
a person logs in and subsequently check for its existence whenever they visit a
page requiring a login. The cookie is simply deleted when they log out or when
it expires (in the latter case by the browser). No record is maintained
anywhere of why it was deleted or even if it ever existed. To do anything more
than that standard process would involve Mark in a whole lot of work using
permanent special purpose cookies, if it's possible at all.

Jim Fisher

-- - My thoughts on freedom (needs updating) - political snippets, especially economic policy - misc. snippets, some political, some not
Forget Google! I search with which doesn't spy on you

Join to automatically receive all group messages.