I have a problem in the languages of the site, it has 4 languages and when you click on the other languages there are times when it changes and most of the time it does not exchange, I do not know if the information is stored in the cache. It was not me who developed the site so it is a bit more complicated to spend here, if any information is missing tell me what I look for.
Here is the language mapping
<map name="MapIdioma">
<area shape="rect" coords="0,2,19,19" href="index.php?idioma=portugues">
<area shape="rect" coords="24,2,43,18" href="index.php?idioma=english">
<area shape="rect" coords="46,2,66,19" href="index.php?idioma=espanol">
<area shape="rect" coords="69,2,89,17" href="index.php?idioma=alemao">
</map>
And here are the sessions that begin
if ($_REQUEST['idioma'] == 'portugues')
{
$_SESSION['idIdioma'] = '1';
/*header ("Location: ".$_SERVER['HTTP_REFERER']);*/
echo "<script>document.location='".$_SERVER['HTTP_REFERER']."'</script>";
exit();
}
if ($_REQUEST['idioma'] == 'english')
{
$_SESSION['idIdioma'] = '2';
/*header ("Location: ".$_SERVER['HTTP_REFERER']);*/
echo "<script>document.location='".$_SERVER['HTTP_REFERER']."'</script>";
exit();
}
if ($_REQUEST['idioma'] == 'espanol')
{
$_SESSION['idIdioma'] = '3';
/*header ("Location: ".$_SERVER['HTTP_REFERER']);*/
echo "<script>document.location='".$_SERVER['HTTP_REFERER']."'</script>";
exit();
}
if ($_REQUEST['idioma'] == 'alemao')
{
$_SESSION['idIdioma'] = '4';
/*header ("Location: ".$_SERVER['HTTP_REFERER']);*/
echo "<script>document.location='".$_SERVER['HTTP_REFERER']."'</script>";
exit();
}
if (!session_is_registered('idIdioma'))
$_SESSION['idIdioma'] = '1';
if ($_SESSION['idIdioma'] != '1' and $_SESSION['idIdioma'] != '2' and $_SESSION['idIdioma'] != '3' and $_SESSION['idIdioma'] != '4')
$_SESSION['idIdioma'] = '1';
if ($_SESSION['idIdioma'] == '1')
include 'idioma.portugues.php';
if ($_SESSION['idIdioma'] == '2')
include 'idioma.ingles.php';
if ($_SESSION['idIdioma'] == '3')
include 'idioma.espanhol.php';
if ($_SESSION['idIdioma'] == '4')
include 'idioma.alemao.php';
?>