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

Schreib einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.