Page 1 of 1

Where does PHP store session files in the file system?

Posted: Fri Feb 05, 2010 6:47 pm
by JAB Creations
Where does PHP store session files in the file system? The last time I remember needing to manually clear them there was a folder on XP somewhere and I could manually delete them. I will disregard any reason not to, I've done this in the past. I need to test IE on my work but even manually clearing cookies it's refusing to let go of sessions even after rebooting XP in VirtualBox. :roll:

Re: Where does PHP store session files in the file system?

Posted: Fri Feb 05, 2010 7:15 pm
by JAB Creations
Figured it out, in XAMPP it's XAMPP\tmp.

Re: Where does PHP store session files in the file system?

Posted: Fri Feb 05, 2010 7:20 pm
by John Cartwright
I know you found it, but for future reference..

You can use session_save_path() to determine it.. otherwise look in your phpinfo();

Re: Where does PHP store session files in the file system?

Posted: Fri Feb 05, 2010 7:31 pm
by JAB Creations
Thanks, that sounds a lot easier! I actually was looking through php.ini and then out of no where wondered if there was a temp directory, found it, saw the readme file and confirmed it when I cleared everything in IE and it finally let go.