I have heard that there are security problems that arise because of this. Would it be wise to use purely databases for storing PHP sessions rather than in /tmp?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
They are unsafe (although the Suhosin extension can encrypt them, providing a little bit of security). You shouldn’t need to switch to a database just because of this (although there are other valid reasons to do so). The easiest way is to just set
session.save_pathto a directory only you can access.