Class WebSessionCookieConfig

  • All Implemented Interfaces:
    jakarta.servlet.SessionCookieConfig

    public final class WebSessionCookieConfig
    extends SessionCookieConfigImpl
    This class extends SessionCookieConfigImpl to handle additional secure cookie functionality from glassfish-web.xml
    Author:
    Shing Wai Chan
    • Constructor Detail

      • WebSessionCookieConfig

        public WebSessionCookieConfig​(StandardContext context)
    • Method Detail

      • setSecure

        public void setSecure​(boolean secure)
        Specified by:
        setSecure in interface jakarta.servlet.SessionCookieConfig
        Overrides:
        setSecure in class SessionCookieConfigImpl
        Parameters:
        secure - true if the session tracking cookies created on behalf of the ServletContext from which this SessionCookieConfig was acquired shall be marked as secure even if the request that initiated the corresponding session is using plain HTTP instead of HTTPS, and false if they shall be marked as secure only if the request that initiated the corresponding session was also secure
      • setSecure

        public void setSecure​(String secure)