Hi
A quick explanation:
4 PHP files (Form, Create, Delete, Get). In the file Form.php I set same variables, then I click a button and it calls Create.php which creates a picture on a disk and after shows up.
Create.php
Code: Select all
session_start();
$Fname = str_replace('.','',microtime(true));
$_SESSION['sesFname'] = $Fname;
When the picture is shown I can download (Get.php) or close and delete it (Delete.php). I pass the file name between those php files with $_SESSION['sesFname']. Everything is fine when people call the script under different IPs, but when I create two pictures on the same computer (IP) at the same time, then I get always the latest session for example: I create PIC 1 and then I create a PIC 2 (in a different tab). I want to now close or download PIC 1, my session is overwritten with PIC 2 and even I click PIC 1 I download PIC2 file. The same thing happens when users are under proxy and run my website at the same time.
What is the best way to solve this problem, and how?