PHP: session_set_cookie_params - Manual

Submitted by michael on Thu, 01/01/2015 - 16:16

The above example states that a session will last an hour without a page refresh until
it is scrapped. Upon a page refresh, the expiration time is reset back to one hour again. If
you wish to give users the option of 'staying logged in forever', just feed startSession a
value of '99999999', which should last about 3 years.