Set Session — Reference
Store a value in this visitor’s server session.
Store a value in this visitor’s server session.
Before you begin
Section titled “Before you begin”- An open Server Connect action. Runtime differences below refer to the installed Node.js and PHP implementations.
Set Session
Section titled “Set Session”Store a value in this visitor’s server session.
Settings and execution
Section titled “Settings and execution”| Setting | Meaning |
|---|---|
| Name | The session key to write, for example preferred_language. |
| Value | The evaluated value to store. Read it in later server requests as $_SESSION.preferred_language when the same session is retained. |
Worked example
Section titled “Worked example”Write Name preferred_language and Value en. In a later request from the same browser session, return the corresponding $_SESSION value in a temporary test action and confirm it is en. Check a separate session to confirm it does not share the value.
Check the behavior and limits
Section titled “Check the behavior and limits”Server sessions are different from App Connect Session Manager, which uses browser sessionStorage. Setting a session key is not a Security Provider login. Session middleware, cookies and session expiry determine persistence.
Continue with a task
Section titled “Continue with a task”Use the Server Connect guides when you need the surrounding project, data-loading or form procedure.
Check your result
Section titled “Check your result”You can configure Set Session deliberately and verify the result and failure behavior described in this reference.