Question

  1. When you log out of a web app, should ALL your session be logged out? When I log out of the web app from the public library, should it also log me out of the session I have on my home computer?

  2. When you choose "remember me" or "stay signed in" when logging in (to extend your session beyond the time your browser is open), does this get continuously updated each time you access the site? If it's originally set for 30 days, does that 30 days get extended when you access the site two weeks later?

I know there are no definite answers here; I'm just looking for some good considerations and expectations.

Was it helpful?

Solution

When you log out of a web app, should ALL your session be logged out?

Generally, if the requirement is that a person be logged on to only one location at a time, it will log off the first computer when the account is accessed from the second computer. If the site allows a person to be logged on at multiple computers, only the computer that is logged off gets logged off, not the others.

When you choose "remember me" or "stay signed in" when logging in (to extend your session beyond the time your browser is open), does this get continuously updated each time you access the site? If it's originally set for 30 days, does that 30 days get extended when you log on two weeks later?

Yes, your 30 days starts over when you access the site again. This is how Yahoo Mail and several other well-known sites work.

OTHER TIPS

Usually you are simply logged out from the system you are on. The session is generally based on either cookies or a tag attached to the url depending on setup. So any login/logout you do really only affects the individual machine/browser that you are using.

Logging the user out from all other computers would be a bit harder to implement, and I can't think of many situations where it would be useful.

As for the remember me feature- I'd say that the correct behavior is to extend the expiration with every visit.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top