> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cognigy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# User and Session Identification

Cognigy.AI uses unique user IDs and session IDs to keep track of users' interactions with AI Agents.

## Restrictions

* You must use session IDs only within one organization in your Cognigy.AI installation.
* Except for the [Voice Copilot Endpoint](/ai/agents/deploy/endpoint-reference/voice-copilot), reusing the combination of user and session IDs across Endpoints causes Endpoint collisions and unexpected behavior.
* You must keep user and session IDs unchanged during interactions with AI Agents. Changing user and session IDs with [transformers](/ai/for-developers/transformers/overview), [xApps](/xApps/overview), [Extensions](/ai/for-developers/extensions), or [Code Nodes](/ai/for-developers/code/overview) can cause unexpected issues and terminate interactions with AI Agents.

## User ID

*User ID* is a unique identifier assigned to each user that helps manage user data safely, personalize user experiences, and keep track of user history and preferences. The AI Agent uses this information to improve its responses and customize the conversation according to the user's needs.
The user ID can be hashed in [transformers](/ai/for-developers/transformers/overview) to enhance privacy and support GDPR compliance.

## Session ID

*Session ID* is a unique identifier given to each session initiated by a user. A session represents a period of interaction between the user and the AI Agent. The AI Agent uses session IDs to manage user sessions, track user activity, ensure security, and provide personalized experiences within the conversation.

## Get User and Session IDs

To get the user ID and session ID, you can:

* Retrieve them from the [Input object](/ai/agents/develop/ai-agent-memory/input) by using the `input.userId` and `input.sessionId` [CognigyScript](/ai/platform-features/cognigyscript) expressions, or the **User ID** and **Session ID** Tokens.
* Copy them from the [Logs](/ai/agents/test/logs) page.

## More Information

* [Input](/ai/agents/develop/ai-agent-memory/input)
* [Logs](/ai/agents/test/logs)
* [xApps](/xApps/overview)
