4D Blog

Home Product Enhanced Session Storage Access

Enhanced Session Storage Access

July 17, 2024

Product

You can store information in the storage of various session types, such as Client/Server, Web, or Mobile, allowing for easy reuse across different processes.

Now, in 4D 20 R6, you can access the storage of a specific session. This enhancement enables users to easily maintain the continuity and consistency of information across multiple sessions of the same user. Imagine being able to pull up the same customer record across different applications such as Client/Server or Web.

HDI: Get Session Storage

New command

The new command “Session storage by id” returns the storage object of the session ID given.

$storage:=Session storage by id($id)

For example, from another session, to modify a text in the storage of the session defined by the ID:

#DECLARE($id : Text; $text : Text)
var $obj : Object
$obj:=Session storage by ID($id)
If($obj.settings=Null)
  Use($obj)
    $obj.settings:=New shared object("text"; $text)
  End use
Else
  Use($obj.settings)
    $obj.settings.text:=$text
  End use
End if

To see the HDI Get Session Storage in action, you can watch the accompanying video and download it yourself to explore its capabilities.

Real-life case

You have a Client/Server application and have extended certain functionalities with Qodly. The exchange of information between these different sessions is essential to enabling users to move easily from one platform to the other.

  1. To ensure a secure sharing of data, it is crucial to have robust authentication measures in place to confirm the identity of the connected user.
  2. In addition, the “Get process activity” command provides a list of users and their corresponding session IDs, enabling efficient tracking and management of user sessions.
  3. Then, use shared objects and the “Session storage by ID” command to reflect changes in session storage across other sessions of the same user. So, a cohesive and synchronized user experience can be achieved.

Next

For more insights on user session management, please refer to the documentation.

You can participate in the conversation on our forum if you have any queries or feedback.

Discuss

Tags 20 R6, 21, 4D server, Client/Server, Programming, Session, Storage

Latest related posts

  • February 3, 2026

    4D Write Pro – Adding a margin automatically when bullets are set using standard actions

  • January 22, 2026

    Transform Static Documents into Actionable Knowledge with AIKit

  • January 22, 2026

    Deploy Fluent UI effortlessly in your 4D applications

Vanessa Talbot
Vanessa Talbot
• Product Owner •Vanessa Talbot joined 4D Program team in June, 2014. As a Product Owner, she is in charge of writing the user stories then translating it to functional specifications. Her role is also to make sure that the feature implementation delivered is meeting the customer need.Since her arrival, she has worked to define key features in 4D. She has worked on most of preemptive multi-threading new features and also on a very complex subject: the new architecture for engined application. Vanessa has a degree from Telecom Saint-Etienne. She began her career at the Criminal Research Institute as a developer for the audiovisual department. She has also worked in media and medical fields as expert in technical support, production as well as documenting new features.
  • Deutsch
  • Français
  • English
  • Português
  • Čeština
  • Español
  • Italiano
  • 日本語

Categories

Browse categories

  • 4D View Pro
  • AI
  • Release infos
  • 4D Write Pro
  • Email, Microsoft 365, Gmail
  • Development Mode
  • 4D Language
  • ORDA
  • User Interface / GUI
  • 4D Qodly Pro
  • Server
  • Maintenance
  • Deployment
  • 4D Tutorials
  • Generic
  • 4D Summit sessions and other online videos

Tags

4D AIKit 4D for Android 4D for iOS 4D NetKit 4D Qodly Pro 4D View Pro 4D Write Pro 21 21 R2 Administration AI Artificial Intelligence Build application CI/CD Class Client/Server Code editor Collections Formula Google Listbox Logs Mail Microsoft 365 Network Objects OpenAI ORDA PDF Pictures Preemptive Programming REST Scalability Security Session Source control Speed Spreadsheet Tutorial UI User Experience vscode Web Word processor

Tags

4D AIKit 4D for Android 4D for iOS 4D NetKit 4D Qodly Pro 4D View Pro 4D Write Pro 21 21 R2 Administration AI Artificial Intelligence Build application CI/CD Class Client/Server Code editor Collections Formula Google Listbox Logs Mail Microsoft 365 Network Objects OpenAI ORDA PDF Pictures Preemptive Programming REST Scalability Security Session Source control Speed Spreadsheet Tutorial UI User Experience vscode Web Word processor
Subscribe to 4D Newsletter

© 2026 4D SAS - All rights reserved
Terms & Conditions | Legal Notices | Data Policy | Cookie Policy | Contact us | Write for us


Subscribe to 4D Newsletter

* Your privacy is very important to us. Please click here to view our Policy

Contact us

Got a question, suggestion or just want to get in touch with the 4D bloggers? Drop us a line!

* Your privacy is very important to us. Please click here to view our Policy