Session rememberme easy to remember ;)

I was searching around, since it has been a while since I’ve worked at this level with sessions and the gist of it is:

session lifetime = 0 means remove cookie after browser is closed
session lifetime < 0 means remove cookie right now session lifetime > 0 means remove cookie after int seconds

This is valid for everything, gorilla/sessions, php, you name it

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.