Session Cache Provider

The CServerSessionCache provider stores data on the server side, persisting data for the duration of a user session.

Note: Server-side caches use the memory of the server they are running on. They may not work as expected in a stateless environment.

CServerSessionCache Example

CServerSessionCache provides server-side in-memory caching isolated per user session (using the user's session identifier). Like traditional server sessions (PHP-style), it persists across requests for that specific user session on stateful Node.js servers, and is never hydrated to the client.