session_id

Returns the session identifier.

Target function

Signature

1session_id(sessionName::string)

Returns the session identifier.

session_id is a global callable that can be used wherever an expression is valid. session_id works with request identity or stored session state. Keep authorization checks close to the action they protect.

Parameters

sessionName
Required value of type string. Supply sessionName positionally unless the signature shows a keyword form.

Examples

Basic call

1session_id('sid')
The example shows the normal call shape. Adapt variable names, validation, and surrounding error handling to the context.