vertx / io.vertx.ext.web.handler / SessionHandler / setCookieSecureFlag

# setCookieSecureFlag

`abstract fun setCookieSecureFlag(secure: Boolean): SessionHandler`

Sets whether the 'secure' flag should be set for the session cookie. When set this flag instructs browsers to only send the cookie over HTTPS. Note that this will probably stop your sessions working if used without HTTPS (e.g. in development).

### Parameters

`secure` - true to set the secure flag on the cookie

Return
a reference to this, so the API can be used fluently