By default on a shared hosting server generally session.save_path is /tmp. This is bad for a couple reasons such as other users on the server can read the data AND even garbage collect the session before it really should.
I have been changing session.save_path to /home/user/tmp and it seems to work fine. This also seems to be the place where phpMyAdmin creates it is sessions.
Is there any harm in creating sessions in this folder? (IE: Does anything auto clear the folder in cpanel in a cron?)
Also will session garbage collection still work when changing the folder?
I have been changing session.save_path to /home/user/tmp and it seems to work fine. This also seems to be the place where phpMyAdmin creates it is sessions.
Is there any harm in creating sessions in this folder? (IE: Does anything auto clear the folder in cpanel in a cron?)
Also will session garbage collection still work when changing the folder?
Last edited: