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

Security

Twidget provides several built-in functions to enhance the security of your applications. Below is an overview of each security command, including its description, inputs, and outputs. Generate ID. Description: Generates a unique identifier. None - Type: Text Hash Text. Description: Hashes the provi...

Text

Twidget offers a variety of commands to manipulate text in various ways. To Uppercase. Converts all characters of the provided text to uppercase. - text: The text to be converted to uppercase. - A text string with all characters in uppercase. To Lowercase. Converts all characters of the provided tex...

Send Message

Send SMS Command. With Twidget, you can send SMS messages to phones using the `Send SMS` command. This functionality varies depending on the provider. Currently, we support Twilio as the SMS provider. To use Twilio for SMS integrations, you will need: - A Twilio account ID - Twilio Auth Token - A Tw...

Loops

In Twidget, loops allow you to execute commands multiple times, either based on a condition or through a set number of iterations. Loops can also be nested, meaning you can run loops within other loops, creating complex logic for your tasks. List Loop. The `List Loop` command enables you to loop thr...

Variables

Variables are essential building blocks in Twidget that allow you to store and manipulate data dynamically within your no-code applications. They enable you to create flexible and interactive applications by holding values that can be changed and referenced throughout your workflow. Creating Variabl...