Question

I save a file with part of the filename as the session_id using PHP, like this:

$newFileName = 'upload_160687_'.session_id().'_160687_'.$originalFileName;

I then save the filename as a string using PHP in the DB and it looks like this:

upload_160687_l4eef6nqlekhbirv2pvmuf5660_160687_Apple_Microsoft_desktop1-1.jpg

However, when I look in the filesystem, that same file is saved as :

upload_160687_41d99tblerr1tr6qq3n854jt05_160687_Apple_Microsoft_desktop1-1.jpg

You can see the difference, but what the hell is the reason????

Thank you for any help!

Was it helpful?

Solution

Can we confirm & close the question and mark it up to the FireFox session_id quirks due to its single shared process?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top