I have developed a web application and I am using a cookie to store the users ID.
My question is how long should I set the expiry for? Should I aim to set it as short as possible?
For example:- my application is to do with time and attendance so I could assume that the maximum time away from the app would be on a 2 week holiday so I could set it for 3 weeks or 1 month.
Or should I just set it to 1 year, 10 years? Do developers have some sort of ethical responsibility to keep machines cookie free when they can or are people not bothered about this kind of thing?