Is’t possible to get list of all session_id in PHP SESSIONS?
Note:
I need maintained some file in the server. One file equal one session. And I need to determine behaviour of old files if SESSION expire.
Thank you all for any advice.
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.
i’d to do this in an old project.
i named the files with the session_id (something like this: sessionid_some_file.tmp) :
_TMP_PATH_ : path where the files to check are.
foreach files i get the session_id, open it and test if something inside. (i wrote something after each session opened)
But be carefull, this piece of code has never been in a production environnment.