所以我在https://cookieconsent.insites.com/download/生成的页面上使用标准Cookie同意 虽然我希望每次有人加载网站时都会重新出现cookie同意。
答案 0 :(得分:0)
查看https://cookieconsent.insites.com/documentation/javascript-api/
上的文档据此,它应该是这样的:
public void FillDGV (string ValueToSearch)
{
MySqlConnection conn = new MySqlConnection(@"Data Source=WFPIQIRK0H0QKR\SQLEXPRESS; Initial Catalog=kurdistan_center; Integrated Security=True");
MySqlCommand command = new MySqlCommand("Select * from TBL_costumers", conn);
MySqlDataAdapter adapter = new MySqlDataAdapter(command);
DataTable table = new DataTable();
adapter.Fill(table);
dataGridView1.RowTemplate.Height = 60;
dataGridView1.AllowUserToAddRows = false;
dataGridView1.DataSource = table;
DataGridViewImageColumn ImgCol = new DataGridViewImageColumn();
ImgCol = (DataGridViewImageColumn)dataGridView1.Columns[11];
ImgCol.ImageLayout = DataGridViewImageCellLayout.Stretch;
dataGridView1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
}
因此将window.cookieconsent.initialise({
"cookie": {
expiryDays: 0
},
"palette": {
"popup": {
"background": "#000"
},
"button": {
"background": "#f1d600"
}
}
});
设置为cookie.expiryDays
也许应该可以胜任。
答案 1 :(得分:0)
它可能不是那么干净但它会删除/重置cookie
preds