I am using these variables in my site:
$_SESSION["domain.com"]["var1"]
$_SESSION["domain.com"]["var2"]
$_SESSION["domain.com"]["var3"]
and so on... how can i set all of these variables to a certain value at once?
I am using these variables in my site:
$_SESSION["domain.com"]["var1"]
$_SESSION["domain.com"]["var2"]
$_SESSION["domain.com"]["var3"]
and so on... how can i set all of these variables to a certain value at once?
Are you just trying to set them all at the same time? Just set ['domain.com']
to an array.
$_SESSION['domain.com'] = array(
'var1' => 'one',
'var2' => 'two',
'var3' => 'three',
);