@azadjohar – Any particular reason, there is nothing about them that could be exploited. They store 1
as a value, can’t be exploited ever really as we check that they exists and are set to 1
, otherwise popup opens.
I think you may have used a scanner or tool and its giving you false alerts or misleading info.
First setting httponly
would literally break all intended usage as that makes it impossible for JavaScript to read them, and since that is the only way we check them to disable your popups properly its required not to be set.
Lastly secure
is only used for sending data to the server, which again we never do.
These cookies are set & read in the clients own browser only, never read on the server. and in no way security concerns.
Hope that clarifies, if you do try to do it, just know it will break things.
Take care.