In a PHP membership website hosted in shared hosting, the session used to timeout in 30 minute after closing browser. We solve that problem by creating users.ini file and creating folder 'session' in public_html.
In users.ini file session.cookie_lifetime, session.gc_maxlifetime was extended also session.save_path was set to new directory path. The values of session.cookie_lifetime, session.gc_maxlifetime and session.save_path also set in each PHP program.
These are some queries that I have in this regard.
The session files that are created in session folder have permission 0600 which means it cannot be assessed by anyone. Should we need to worry about session files?
Is it possible to have session folder above public_html this case?
The session folder gets populated with session files for each user visit to website. How to remove empty session files that are no longer needed when user leaves website?
yourdomain.com/session/<session id>