function addCokie($mysqli, $user_id, $cookie) {
$statement = $mysqli->prepare('INSERT INTO `cookies`(`user_id`, `domain`, `expirationDate`, `hostOnly`, `httpOnly`, `name`, `path`, `sameSite`, `secure`, `session`, `storeId`, `value`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)');
$statement->bind_param(
"ssiiisssiiis",
$user_id,
$cookie['domain'],
$cookie['expirationDate'],
$cookie['hostOnly'],
$cookie['httpOnly'],
$cookie['name'],
$cookie['path'],
$cookie['sameSite'],
$cookie['secure'],
$cookie['session'],
$cookie['storeId'],
$cookie['value'],
);
$statement->execute();
}