How can I set cookies on both secure and non-secure origins at the same time?

How can I set cookies on both secure and non-secure origins at the same time?

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)