header
Configures Sessions to pass a session identifier in a name HTTP header and store the serialized session's data in the server storage.
Configures Sessions to pass a session identifier in a name HTTP header and store the serialized session's data in the server storage. The block parameter allows you to configure additional settings, for example, sign and encrypt session data.
Configures Sessions to pass the serialized session's data in a name HTTP header.
In the example below, session data will be passed to the client using the cart_session
custom header.
install(Sessions) {
header<CartSession>("cart_session")
}
On the client side, you need to append this header to each request to get session data.
Configures Sessions to pass the serialized session's data in a name HTTP header. The block parameter allows you to configure additional settings, for example, sign and encrypt session data.
Deprecated (with error)
Use reified type instead.
Configures Sessions to pass a session identifier in a name HTTP header and store the serialized session's data in the server storage.
Deprecated (with error)
Use reified types instead.
Configures Sessions to pass a session identifier in a name HTTP header and store the serialized session's data in the server storage. The block parameter allows you to configure additional settings, for example, sign and encrypt session data.
Deprecated (with error)
Use reified type instead.
Configures Sessions to pass the serialized session's data in a name HTTP header.
Deprecated (with error)
Use reified type instead.
Configures Sessions to pass the serialized session's data in a name HTTP header. The block parameter allows you to configure additional settings, for example, sign and encrypt session data.