BBjJettyContextConfiguration::setSessionCookieSameSite

Description

In BBj 21.03 and higher, this method sets the SameSite attribute for the session cookie of this context.

Syntax

Return Value

Method

void

setSessionCookieSameSite(String samesite)

Parameters

Variable

Description

samesite

The SameSite value to assign to the session cookie. Valid values are "strict", "lax", and "none". Pass an empty string to clear the setting.

Return Value

None.

Remarks

With recent browser updates, cookies must set the Secure and SameSite=None attributes to be sent successfully from a page hosted inside an iframe. The SameSite attribute can also be configured in bbj_home/cfg/jetty.xml by adding a session-cookie-samesite attribute to a <context> tag, or from the Enterprise manager at EM: Web > Context Configuration.

See Also

BBjAPI

BBjJettyContextConfiguration

BBjJettyContextConfiguration::getSessionCookieSameSite()