please help with sess_expiration - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: please help with sess_expiration (/showthread.php?tid=61524) |
please help with sess_expiration - khashabawy - 04-22-2015 hi in CI2 i used to set >> sess_expiration = 0 The number of seconds you would like the session to last. The default value is 2 hours (7200 seconds). If you would like a non-expiring session set the value to zero: 0 but now in CI 3 The number of seconds you would like the session to last. If you would like a non-expiring session (until browser is closed) set the value to zero: 0 what if i want the session not expired at all ? i want it renewable and non-expiring . please help me with this RE: please help with sess_expiration - Narf - 04-22-2015 There's no such thing as a "non-expiring" with sessions (cookies) ... You may set the expiry time to be a thousand years, but technically - it still has to expire at some point. RE: please help with sess_expiration - khashabawy - 04-23-2015 (04-22-2015, 04:58 AM)Narf Wrote: There's no such thing as a "non-expiring" with sessions (cookies) ... You may set the expiry time to be a thousand years, but technically - it still has to expire at some point. Why no such thing ? How was it done before ? RE: please help with sess_expiration - Narf - 04-23-2015 (04-23-2015, 03:31 AM)khashabawy Wrote: Why no such thing ? Becase, as I said - no such thing exists. (04-23-2015, 03:31 AM)khashabawy Wrote: How was it done before ? It hasn't been done. When you set 'sess_expiration' to 0 in CI2, you just had a cookie with an expiry time of 730 days. RE: please help with sess_expiration - khashabawy - 04-24-2015 I use this config : PHP Code: $config['sess_driver'] = 'files'; although i am required to login every day any help ? |