Sign Up
Loading...

Session Storage

Twidget includes a suite of session storage commands that enable no-code interaction with the browser’s sessionStorage API. These tools allow temporary storage of key-value data for the current page session.

Purpose

Session storage commands allow developers to manage transient data tied to a single page session. Unlike local storage, this data is cleared when the tab or browser is closed, making it suitable for non-persistent state handling, such as temporary user input or UI state.

Key Concepts

  • Session Scope: Data is retained only for the duration of the browser tab session.

  • String-Based Access: All keys are strings, and values are stored and retrieved as text.

  • Temporary State: Ideal for managing ephemeral state that doesn’t need to persist between sessions.

Available Commands

  • Set Item: Stores a value under a specified key in session storage. Accepts any data type.

  • Get Item: Retrieves a stored value by key and returns it as text.

  • Remove Item: Deletes a specific key-value pair from session storage.

  • Clear: Clears all data associated with the current session.

These commands enable quick and flexible session-based data handling within Twidget, without requiring any manual JavaScript code.

Related Topics

Lists

Twidget offers a variety of commands to help you manipulate lists easily without coding. Below is a detailed explanation of each command available. Get. Description: Returns the element in the provided list at the given index. Inputs: - `list`: The list from which to get the element. - `index`: The ...

Date

Twidget offers a variety of commands to manipulate date objects. Below are the available commands along with their respective descriptions, inputs, and outputs. Current Date. Description: Returns the current date and time. Output: - Type: DATE Add Time. Description: Returns the date plus a specified...

Connector Commands

Connector Commands allow you to integrate Twidget projects with external services such as Google Drive, Slack, OpenAI’s ChatGPT, and many others. These commands provide ready-made actions that communicate with third-party APIs, removing the need to manually create and maintain external HTTP requests...

Conditionals

Condition Command. The Condition Command allows you to perform actions based on whether an expression evaluates to true or false. You can nest other commands within the true or false branches of the condition, enabling complex logic flows. - Expression Builder: Validate two variables to equal true. ...

Local Storage

Twidget provides a set of local storage commands that enable interaction with the browser’s `localStorage` API through a no-code interface. These commands are useful for storing, retrieving, and managing key-value data persistently within the current domain context. Purpose. These commands abstract ...