I have this at the very top of my send.php file:
ob_start();
@session_start();
//some display stuff
$_SESSION[\'id\'] = $id; //$id has a value
When using the header function, php does not trigger a close on the current session. You must use session_write_close to close the session and remove the file lock from the session file.
ob_start();
@session_start();
//some display stuff
$_SESSION['id'] = $id; //$id has a value
session_write_close();
header('location: test.php');