# Session Plugin

The "Session Plugin" allows you to memorize the user's data stored in the session and effortlessly manage and manipulate other data within your application until the user logs out. These parameters can be passwords, tokens, IDs, and other information.&#x20;

As users interact with your application, the plugin stores and manages essential data, ensuring a smooth and personalized user experience.

### How to Use?

Simply drag and access the plugin interface, where you can define and assign parameters based on your application's requirements. Configure the plugin and save your configurations.

Let's glance at which utility (method) to understand when and where to use.&#x20;

**Session Exist:** Use this method to keep track of logged-in users' details, maintaining their session data to provide a personalized experience without constant re-authentication.&#x20;

**Set parameters:** Use this method to tell the plugin to store a specific parameter by defining the parameter name and value.&#x20;

**Get Parameters:** Use this method to retrieve the set parameters using the parameter name to utilize them across the APIs involved in your application.

**Get UserName:** Use this method to retrieve the logged-in user's username.&#x20;

**Get UserId:** Use this utility to retrieve the logged-in user's user ID.&#x20;

When you are dealing with the "Set" methods, specify the data type, value type, and value in the Input Configuration tab. When you are dealing with the "Get" method, specify the data type in the Output Configuration tab.&#x20;

{% hint style="info" %}
**Note**: By default, the plugin memorizes the user's data stored in the session. Any additional parameters you want the plugin to remember can be specified using the SET method and retrieved using the GET method.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.reasy.ai/help/getting-started/workspace/tools/data-driven-plugins/data-sources/session-plugin.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
