function cookiesToSession()
{
foreach($_COOKIE as $key => $value)
{
$_SESSION[$key] = $value;
}
}
Hi everyone, the above code doesn't work. The goal was to have for any $_COOKIE['var'] an automatic setting of $_SESSION['var'].
Any ideas about what went wrong ? Thanks in advance.