Buttons not responding when I set <httpCookies httpOnlyCookies="true" requireSSL="true" />

To secure my cookie attributes, I am using the below code in Web.config.

<httpCookies httpOnlyCookies="true" requireSSL="true" />

But after applying the changes, all the buttons in my Web application is not responding. How to resolve the issue?