Where is the data saved in the session archived?
One more question, why is this code so
if(!isset($_SESSION['itens'][$id])){
$_SESSION['itens'][$id] = 1;
}else{
$_SESSION['itens'][$id] =1;
}
I just copied this code from other people, but I do not know why they are together, so ['items'] [$ id]
Thank you very much.