0
Where the data saved in Session is stored?
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 don’t know why they’re together like [ ' items' ] [ $id ]
Hug, thanks in advance .
If there is no key
$_SESSION['itens'][$id]
the code creates it and assigns the value1
, if any assigns the value1
also :)– rray
Friend, try to be a little more explanatory in your question. What is the purpose of the function you want to use? Also change the title to something we can understand
– Clayton Tosatti
of a read in:
session_save_path
available in: http://php.net/manual/en/function.session-savepath.php– Don't Panic