Is there a way to make cookies secure and/or http-only without using response.setHeader
like this:
response.setHeader("Set-Cookies",
"name1=value2; Path=/path; Secure; HttpOnly," +
"name2=value2; Expires=Sun, 03-Jun-2012 23:00:56 GMT; Path=/, etc.");
But using some built-in functionality?
P.S. I'm not talking about session cookies, but custom cookies an application uses.