Sessions are started via session_start()
, I realize that much, but to make sessions persistent, they need an ID.
Now, the php.ini file has a setting:
session.use_cookies = 1
So I don't have to pass the ID around. But there's another setting:
; Lifetime in seconds of cookie or, if 0, until browser is restarted.
session.cookie_lifetime = 0
Am I to understand that if I implement this and go to my website, login, do what I wanna do, shut the browser down and start it again some time later, that I won't be logged in anymore when I go back to my site?
EDIT: So to stay logged in, I will have to combine this with client-side cookies.
I'm guessing I'll need 2 database fields. 1 for the sessions ID, 1 for the ID I give to the cookie.