Learn how to securely transfer session state from your client application to your server for performing operations on behalf of authenticated users.Documentation Index
Fetch the complete documentation index at: https://docs.getpara.com/llms.txt
Use this file to discover all available pages before exploring further.
Exporting Sessions for Server-Side Operations
UsewaitAndExportSession() when you need to transfer an authenticated user’s session state to your server.
waitAndExportSession() waits until the SDK has reached an authenticated state before exporting session data. Use it for client-to-server handoff flows immediately after login.Importing Sessions
For cases where you need to import a previously exported session back into a Para client instance:A Para instance can hold one active session at a time. On the server, create a fresh
ParaServer instance for each imported user session.Server-Side Implementation
To learn more about handling sessions on the server, check out the following guide:Server-Side Session Management
Best Practices
- Export for the operation you need: Include signer data only when your server will sign for the user.
- Secure transmission: Always use HTTPS when transmitting exported sessions to your server. Do not log serialized sessions.
- Session validation: Verify the session validity on your server before performing authenticated operations.