I have a site that changes whenever a new location is changed. The location choices is by using a drop down. And on change calls this function:
function PROD_CHANGE_LOC() {
location_change = document.getElementById("PROD_SEL_LOC").value;
varURL = "http://" + varServerAddr +
"/hourly_ft_wip/production_line/prod_line_loc.php?location_change=" +
location_change, LOAD(varURL, "LOCATION");
setTimeout(function() {
location.reload();
}, 100);
}
prod_line_loc.php just contains:
session_start();
$_SESSION['HOURLY_FT_WIP']['PROD_LOC'] = $_REQUEST['location_change'];
$_SESSION['HOURLY_FT_WIP']['PROD_TESTER'] = 'ALL';
And it returns to my main page that sets location by using this:
if(!isset($_SESSION['HOURLY_FT_WIP']['PROD_LOC'])){
$_SESSION['HOURLY_FT_WIP']['PROD_LOC'] = 'EOLPHL';
}
else{
$_SESSION['HOURLY_FT_WIP']['PROD_LOC'] = $_SESSION['HOURLY_FT_WIP']['PROD_LOC'];
}
This is working in our server, but we had to transfer to a new server and sometimes the session is changed. But sometimes it doesn't. Are there any settings to look that might affect this?
The only difference I see in them is in our old server it is located in var/www/folder
but in our new server it is located in var/www/html/folder
Also the reason I have a sleep function it doesn't work in Firefox without that.