4D Blog

Home Product Track, Audit, Optimize: Take Control of Your 4D Web Sessions

Track, Audit, Optimize: Take Control of Your 4D Web Sessions

October 15, 2025

Product

Since the introduction of scalable sessions, server-side session management has become an important component of modern 4D architectures. These sessions enable fine-tuned scalability for web applications, but also require stricter supervision to guarantee performance, stability, and license control. With 4D 21, you now have a comprehensive means of inspecting all open web sessions, whether they originate from REST connections, SOAP calls, or 4DACTION requests.

The Process activity command has been enhanced to faithfully reflect server-side network activity. It now provides a list of all active sessions, including:

  • Sessions created by SOAP services,
  • REST sessions opened via 4DACTION.

Process activity(Session only)

This gives administrators and developers full transparency into how the server is being used at any given time.

In addition, during the authentication process, if you choose to explicitly name the user via the “Session.setPrivilege()” function, you can easily identify the connected user.

Session.setPrivilege({userName: "name"})

This simple step makes it much easier to identify connected users. It also facilitates information sharing between sessions, since you can access any session storage by its unique ID. This is especially useful for sharing data between processes. The data saved in the session storage can also be used to dynamically filter the results returned by the “Restrict” event, allowing you to restrict data access based on the session context.

Example:

[
    {
        "creationDateTime": "2025-08-07T14:26:10Z",
        "hostType": "browser",
        "ID": "07FEE39015C447B0B67D2220E528D563",
        "IPAddress": "localhost",
        "machineName": "",
        "state": "active",
        "type": "rest",
        "userName": "John Doe"
    }
]

In summary

This new information, accessible via the Process activity command, makes it considerably easier to monitor, audit, and optimize connections. You’ll gain greater visibility into the actual use of your server, enabling you to make better decisions on a day-to-day basis.

Discuss

Tags 21, 4D server, Administration, Client/Server, REST, Session, Web server, Web session

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
  • 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