Search code examples
phpsession

Can you help me locate PHP session files?


I have a default configuration of xampp (LAMP) on a windows system, I have been googleing and reading stackflow for an hour but I can not find where php session data is saved, I would like to locate a session file and look at it.

Some sites say windows usually stores it here C:\windows\tmp\ but I was unable to find it there or anywhere else.

  1. Do you know where sessions are saved by default?f
  2. Do you know what kind name and file? extension they might would have?

Solution

  • session_save_path() - they have no extension, they are long string UID named files.