title: Is it bad to use session.cookie_lifetime for keeping session upon closed browser window?
body: <p>I'm experimenting with PHP and I noticed that if you use SESSIONS, they expire when you close the browser window.</p>
  
  <p>I searched in here and they said you can use <code>session.cookie_lifetime</code> but it's not recommended to have it on for too long. My question is. Sites like this for example, or reddit, or facebook. They have a "remember me" button so the session is not closed when you close the browser. How do they achieve this?</p>
  
  <p>Thanks in advance!</p>