How to have a session that never expires ? |
(06-12-2018, 12:18 PM)Coool6 Wrote: Thanks for the info ! Read the documentation one more time. Oh, never mind. It says Quote:[The files driver] doesn’t support PHP’s directory level and mode formats used in session.save_path, Yes, you could explicitly set it like this. PHP Code: $config['sess_save_path'] = "/srv/data/var/php/www"; But that's not a good place if /srv/data/var/php/www is where index.php is located. It is wise to put session storage outside a site's public accessible folders. You should consider creating a different folder. Perhaps /srv/data/var/php/sessions/. The owner should be www-data and with permissions set to 0700. If you were to create what was just described then you would use PHP Code: $config['sess_save_path'] = "/srv/data/var/php/sessions"; |
Welcome Guest, Not a member yet? Register Sign In |