Kullanıcı Kılavuzu

Get Current Session Info

Get Current Session Info

The Get Current Session Info action available on the Kuika platform allows you to dynamically retrieve session information for logged-in users from the system. With this action, you can access session details such as user ID, role information, and session duration, and perform conditional operations within your application based on this information.

Technical Features

  • Parameterless Usage: This action does not take any parameters.
  • Session Information Access: The user's current session ID, role, and access information are retrieved.
  • Web & Mobile Compatibility: Works on both web and mobile applications.
  • Authorization Compatibility: User information is returned according to the current Authorization configuration.

Get Current Session Info Action Application Steps

  1. Open your project on the Kuika platform.
  2. Go to the UI Design module and select the screen where you want to display the delegation information.
  1. From the + ADD ACTION menu, add the Authorization > Get Current Session Info action according to the trigger event you want (Initial Actions, OnClick, OnBlur, etc.).

Usage Scenario: Page Customization Based on the Logged-in User

In an admin panel, only users with the “admin” role should be able to see additional settings. This can be controlled with the Get Current Session Info action.

Scenario Steps:

  • When the page loads, the Get Current Session Info action runs.
  • The obtained user information is transferred to a temporary variable using the Set Value action.
  • Using Condition:
    • If the user's role is “admin,” the “System Settings” section of the page is made visible.
    • Users with other roles cannot see this area.

Example output:

  • Username: elif.yilmaz@firma.com
  • Roles: [‘admin’, “editor”]
  • SessionId: 78e4-a987-fd03
  • LoginTime: 29.05.2025 09:15

With this data, personalized experiences and security controls can be easily implemented within the application.

Get Current Session Info Action Advanced Customizations

  • Dynamic Navigation: Users can be redirected to different pages based on their role.
  • Logging: Session information can be recorded in a special log system.
  • Form Filling: User information can be automatically filled in forms (e.g., “First Name” field).

Technical Risks and Controls

  • Privacy: Session information should only be used in trusted actions.
  • Unauthorized Access: Information display should be restricted based on roles.
  • Current Session: The action returns only valid session information; information about other users cannot be obtained.

Get Current Session Info is a basic action used in Kuika applications to create user-specific experiences, provide role-based access control, and develop session-based decision mechanisms.

Other Related Content

No items found.

Glossary

No items found.

Alt Başlıklar