Sunday, June 8, 2014

Locate php session files via ssh

There are times when you need to know where php is saving session files in your Linux file system. If you try to find it by opening all directories one by one it becomes very irritating.

Here is simple ssh command that will get you the path on session files.

php -r 'echo session_save_path(), "\n";'

I hope this will help few.

No comments:

Post a Comment