Fork me on GitHub

HST Cookie Utility

org.onehippo.forge.utilities.hst.cookie.HSTCookie

Static utility class with following methods:

    boolean acceptsCookies(request, response)
    void removeCookie(request, name)
    Cookie getCookie(request, name)
    void setSessionCookie(response, name, value)
    void setCookie(response, name, value, age)
    void setCookie(response, name, value, age, domain, path, secure)