0
votes

I have a LAMP server. I have started playing around with php cookies and sessions inside my scripts. Is there any way to check what or how many and what type of session I have active? I am able to check if cookies are being deleted from client side but sessions are server side with only a token in the client side.

Is there a command of some sort that would allow me to view active sessions (amount, time, session info) connected to my server?

Thanks.

1

1 Answers

0
votes

By default PHP stores session on disk. Go do your sessions directory and check the active sessions there.

The file name of the session directory is the session token and the data stored in the file is the session data.