in reply to Cookie login (pseudocode)

Don't bother deleting cookies or setting a short term expiration on them. You should be "branding the browser" as I show in a column of mine.