Session Variables is an important feature for temporary storage of data that you can use in the Kuika platform. You can quickly integrate Session Variables to securely store and manage user session information in your applications. These variables allow you to personalize the user experience by storing information such as user ID, session state, preferred language, etc. Session variables ensure that data is stored throughout the application lifetime in web applications. In this course, you will learn how to securely store user information using Session Variables and how to enable session management.
This training content consists of the following topics:
Configure the following fields from the modal that opens:
Variable field
Then you can add the variable by clicking on the “ADD” button on the right side and save it with the “SAVE” button.
If necessary, the CAST function can be used to convert the Session Variable to the appropriate data type.
SELECT CAST(SESSION_CONTEXT(N'user_id') AS NVARCHAR(100)) AS UserName
4. Click on the “CREATE” button at the top right.
This method ensures that the Session Variable is processed with the correct data type.
After defining SQL Action and Session Variables, test your query: