HttpSession.getValue

Gets a session value.

class HttpSession
final
T
getValue
(
T = string
)
(
string name
,
lazy T defaultValue = T.init
)

Parameters

name string

The name of the value to retrieve.

defaultValue T

The default value to return if no value could be retrieved.

Return Value

Type: T

Returns the value retrieved or defaultValue if not found.

Meta