Skip to content

Commit

Permalink
update 25/11 (#374)
Browse files Browse the repository at this point in the history
* New translations method-list.md (Spanish)

* New translations button_overview.md (Spanish)

* New translations picturebutton_overview.md (Spanish)

* New translations properties_textandpicture.md (Spanish)

* New translations radio_overview.md (Spanish)

* New translations commands.md (Spanish)

* New translations vp-add-selection.md (Spanish)

* New translations vp-cell.md (Spanish)

* New translations vp-get-data-context.md (Spanish)

* New translations vp-set-data-context.md (Spanish)

* New translations vp-set-sheet-options.md (Spanish)

* New translations button_overview.md (Spanish)

* New translations picturebutton_overview.md (Spanish)

* New translations properties_textandpicture.md (Spanish)

* New translations radio_overview.md (Spanish)

* New translations vp-add-selection.md (Spanish)

* New translations vp-get-data-context.md (Spanish)

* New translations vp-set-data-context.md (Spanish)

* New translations vp-set-sheet-options.md (Spanish)

* New translations button_overview.md (Spanish)

* New translations picturebutton_overview.md (Spanish)

* New translations properties_textandpicture.md (Spanish)

* New translations radio_overview.md (Spanish)

* New translations commands.md (Spanish)

* New translations vp-add-selection.md (Spanish)

* New translations vp-get-data-context.md (Spanish)

* New translations vp-set-data-context.md (Spanish)

* New translations vp-set-sheet-options.md (Spanish)

* New translations method-list.md (Japanese)

* fixed tables

* vp fix

* New translations commands.md (Japanese)

* New translations vp-add-selection.md (Japanese)

* New translations vp-cell.md (Japanese)

* New translations vp-get-data-context.md (Japanese)

* New translations vp-set-data-context.md (Japanese)

* New translations vp-set-sheet-options.md (Japanese)

* New translations vp-add-selection.md (Japanese)

* New translations vp-get-data-context.md (Japanese)

* New translations vp-set-data-context.md (Japanese)

* New translations vp-set-sheet-options.md (Japanese)

* New translations create-entity-selection.md (Japanese)

* New translations outgoingmessageclass.md (Japanese)

* New translations outgoingmessageclass.md (Japanese)

* New translations commands.md (Japanese)

* New translations vp-add-selection.md (Japanese)

* New translations vp-get-data-context.md (Japanese)

* New translations vp-set-data-context.md (Japanese)

* New translations vp-set-sheet-options.md (Japanese)

* New translations create-entity-selection.md (Japanese)

* New translations backup.md (Portuguese, Brazilian)

* New translations geninfo.md (Portuguese, Brazilian)

* New translations mandata.md (Portuguese, Brazilian)

* New translations backup.md (Portuguese, Brazilian)

* New translations classes.md (Portuguese, Brazilian)

* New translations geninfo.md (Portuguese, Brazilian)

* New translations gettingstarted.md (Portuguese, Brazilian)

* New translations httprequests.md (Portuguese, Brazilian)

* New translations preemptiveweb.md (Portuguese, Brazilian)

* New translations sessions.md (Portuguese, Brazilian)

* New translations webserver.md (Portuguese, Brazilian)

* New translations tls.md (Portuguese, Brazilian)

* New translations backup.md (Portuguese, Brazilian)

* New translations geninfo.md (Portuguese, Brazilian)

* New translations handling_users_groups.md (Portuguese, Brazilian)

* New translations formulas.md (Portuguese, Brazilian)

* New translations method-list.md (Portuguese, Brazilian)

* New translations gettingstarted.md (Portuguese, Brazilian)

* New translations httprequests.md (Portuguese, Brazilian)

* New translations preemptiveweb.md (Portuguese, Brazilian)

* New translations sessions.md (Portuguese, Brazilian)

* New translations webserver.md (Portuguese, Brazilian)

* New translations webserverconfig.md (Portuguese, Brazilian)

* New translations sessionclass.md (Portuguese, Brazilian)

* New translations backup.md (Portuguese, Brazilian)

* New translations parameters.md (Portuguese, Brazilian)

* New translations encrypt.md (Portuguese, Brazilian)

* New translations updates.md (Portuguese, Brazilian)

* New translations dsmapping.md (Portuguese, Brazilian)

* New translations ordaclasses.md (Portuguese, Brazilian)

* New translations remotedatastores.md (Portuguese, Brazilian)

* New translations authusers.md (Portuguese, Brazilian)

* New translations handling_users_groups.md (Portuguese, Brazilian)

* New translations commands.md (Portuguese, Brazilian)

* New translations vp-add-selection.md (Portuguese, Brazilian)

* New translations vp-cell.md (Portuguese, Brazilian)

* New translations vp-export-document.md (Portuguese, Brazilian)

* New translations vp-get-data-context.md (Portuguese, Brazilian)

* New translations vp-set-allowed-methods.md (Portuguese, Brazilian)

* New translations vp-set-custom-functions.md (Portuguese, Brazilian)

* New translations vp-set-data-context.md (Portuguese, Brazilian)

* New translations vp-set-date-time-value.md (Portuguese, Brazilian)

* New translations vp-set-date-value.md (Portuguese, Brazilian)

* New translations vp-set-sheet-options.md (Portuguese, Brazilian)

* New translations formulas.md (Portuguese, Brazilian)

* New translations authentication.md (Portuguese, Brazilian)

* New translations preemptiveweb.md (Portuguese, Brazilian)

* New translations qodly-studio.md (Portuguese, Brazilian)

* New translations webserver.md (Portuguese, Brazilian)

* New translations webserverconfig.md (Portuguese, Brazilian)

* New translations web.md (Portuguese, Brazilian)

* New translations functionclass.md (Portuguese, Brazilian)

* New translations sessionclass.md (Portuguese, Brazilian)

* New translations backup.md (Portuguese, Brazilian)

* New translations classes.md (Portuguese, Brazilian)

* New translations parameters.md (Portuguese, Brazilian)

* New translations encrypt.md (Portuguese, Brazilian)

* New translations bars.md (Portuguese, Brazilian)

* New translations sdi.md (Portuguese, Brazilian)

* New translations dsmapping.md (Portuguese, Brazilian)

* New translations remotedatastores.md (Portuguese, Brazilian)

* New translations authusers.md (Portuguese, Brazilian)

* New translations handling_users_groups.md (Portuguese, Brazilian)

* New translations vp-add-selection.md (Portuguese, Brazilian)

* New translations vp-export-document.md (Portuguese, Brazilian)

* New translations vp-get-data-context.md (Portuguese, Brazilian)

* New translations vp-set-allowed-methods.md (Portuguese, Brazilian)

* New translations vp-set-custom-functions.md (Portuguese, Brazilian)

* New translations vp-set-data-context.md (Portuguese, Brazilian)

* New translations vp-set-date-time-value.md (Portuguese, Brazilian)

* New translations vp-set-date-value.md (Portuguese, Brazilian)

* New translations vp-set-sheet-options.md (Portuguese, Brazilian)

* New translations formulas.md (Portuguese, Brazilian)

* New translations authentication.md (Portuguese, Brazilian)

* New translations preemptiveweb.md (Portuguese, Brazilian)

* New translations qodly-studio.md (Portuguese, Brazilian)

* New translations webserver.md (Portuguese, Brazilian)

* New translations webserverconfig.md (Portuguese, Brazilian)

* New translations web.md (Portuguese, Brazilian)

* New translations formula.md (Portuguese, Brazilian)

* New translations session.md (Portuguese, Brazilian)

* New translations sessionclass.md (Portuguese, Brazilian)

* New translations backup.md (Portuguese, Brazilian)

* New translations parameters.md (Portuguese, Brazilian)

* New translations encrypt.md (Portuguese, Brazilian)

* New translations bars.md (Portuguese, Brazilian)

* New translations sdi.md (Portuguese, Brazilian)

* New translations updates.md (Portuguese, Brazilian)

* New translations dsmapping.md (Portuguese, Brazilian)

* New translations ordaclasses.md (Portuguese, Brazilian)

* New translations remotedatastores.md (Portuguese, Brazilian)

* New translations authusers.md (Portuguese, Brazilian)

* New translations handling_users_groups.md (Portuguese, Brazilian)

* New translations commands.md (Portuguese, Brazilian)

* New translations vp-add-selection.md (Portuguese, Brazilian)

* New translations vp-export-document.md (Portuguese, Brazilian)

* New translations vp-get-data-context.md (Portuguese, Brazilian)

* New translations vp-set-allowed-methods.md (Portuguese, Brazilian)

* New translations vp-set-custom-functions.md (Portuguese, Brazilian)

* New translations vp-set-data-context.md (Portuguese, Brazilian)

* New translations vp-set-date-time-value.md (Portuguese, Brazilian)

* New translations vp-set-date-value.md (Portuguese, Brazilian)

* New translations vp-set-sheet-options.md (Portuguese, Brazilian)

* New translations formulas.md (Portuguese, Brazilian)

* New translations authentication.md (Portuguese, Brazilian)

* New translations preemptiveweb.md (Portuguese, Brazilian)

* New translations qodly-studio.md (Portuguese, Brazilian)

* New translations webserver.md (Portuguese, Brazilian)

* New translations webserverconfig.md (Portuguese, Brazilian)

* New translations formula.md (Portuguese, Brazilian)

* New translations session.md (Portuguese, Brazilian)

* New translations web.md (Portuguese, Brazilian)

* New translations vp-row.md (French)

* New translations vp-row.md (French)

* New translations vp-row.md (French)

* New translations input_overview.md (Spanish)

* New translations list_overview.md (Spanish)

* New translations pluginarea_overview.md (Spanish)

* New translations onbegindragover.md (Spanish)

* New translations input_overview.md (Spanish)

* New translations list_overview.md (Spanish)

* New translations pluginarea_overview.md (Spanish)

* New translations onbegindragover.md (Spanish)

* New translations input_overview.md (Spanish)

* New translations list_overview.md (Spanish)

* New translations pluginarea_overview.md (Spanish)

* New translations webadmin.md (Spanish)

* New translations input_overview.md (Spanish)

* New translations list_overview.md (Spanish)

* New translations vp-row.md (Spanish)

* New translations webadmin.md (Spanish)

* New translations input_overview.md (Spanish)

* New translations list_overview.md (Spanish)

* New translations vp-row.md (Spanish)

* New translations webadmin.md (Spanish)

* New translations input_overview.md (Spanish)

* New translations list_overview.md (Spanish)

* New translations vp-row.md (Spanish)

* New translations vp-row.md (Japanese)

* New translations vp-row.md (Japanese)

* New translations vp-row.md (Japanese)

* New translations input_overview.md (Portuguese, Brazilian)

* New translations encrypt.md (Portuguese, Brazilian)

* New translations encrypt.md (Portuguese, Brazilian)

* New translations encrypt.md (Portuguese, Brazilian)

* New translations bars.md (Portuguese, Brazilian)

* New translations dsmapping.md (Portuguese, Brazilian)

* New translations bars.md (Portuguese, Brazilian)

* New translations sdi.md (Portuguese, Brazilian)

* New translations vp-row.md (Portuguese, Brazilian)

* New translations vp-row.md (Portuguese, Brazilian)

* New translations vp-row.md (Portuguese, Brazilian)

* Fix some type in VP commands

* Fix VP get data context return type

* New translations vp-remove-table-columns.md (French)

* New translations vp-remove-table-rows.md (French)

* New translations vp-get-formula-by-name.md (Spanish)

* New translations vp-get-names.md (Spanish)

* New translations vp-insert-table-columns.md (Spanish)

* New translations vp-insert-table-rows.md (Spanish)

* New translations vp-remove-table-columns.md (Spanish)

* New translations vp-remove-table-rows.md (Spanish)

* New translations vp-set-sheet-options.md (Spanish)

* New translations vp-set-time-value.md (Spanish)

* Fix some type in VP commands 20R7
report from 8c007e6

* fixed tables and links

* New translations vp-get-formula-by-name.md (Japanese)

* New translations vp-get-names.md (Japanese)

* New translations vp-insert-table-columns.md (Japanese)

* New translations vp-insert-table-rows.md (Japanese)

* New translations vp-remove-table-columns.md (Japanese)

* New translations vp-remove-table-rows.md (Japanese)

* New translations vp-set-sheet-options.md (Japanese)

* New translations vp-set-time-value.md (Japanese)

* New translations outgoingmessageclass.md (Japanese)

* New translations outgoingmessageclass.md (Japanese)

* New translations vp-get-formula-by-name.md (Portuguese, Brazilian)

* New translations vp-get-names.md (Portuguese, Brazilian)

* New translations vp-insert-table-columns.md (Portuguese, Brazilian)

* New translations vp-insert-table-rows.md (Portuguese, Brazilian)

* New translations vp-remove-table-columns.md (Portuguese, Brazilian)

* New translations vp-remove-table-rows.md (Portuguese, Brazilian)

* New translations vp-set-sheet-options.md (Portuguese, Brazilian)

* New translations vp-set-time-value.md (Portuguese, Brazilian)

* New translations entities.md (Portuguese, Brazilian)

* New translations current.json (French)

* New translations updates.md (French)

* New translations vp-get-data-context.md (French)

* New translations vp-get-formula-by-name.md (French)

* New translations vp-get-names.md (French)

* New translations vp-insert-table-columns.md (French)

* New translations vp-insert-table-rows.md (French)

* New translations vp-set-sheet-options.md (French)

* New translations vp-set-time-value.md (French)

* New translations vp-get-data-context.md (French)

* Feature/session single (#2585)

* first draft

* removed session storage from legacy

* edit after closure

---------

Co-authored-by: Eric Marchand <129385512+e-marchand@users.noreply.github.com>
  • Loading branch information
arnaud4d and e-marchand authored Nov 25, 2024
1 parent 4675f79 commit f243299
Show file tree
Hide file tree
Showing 13,116 changed files with 28,711 additions and 28,161 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ on:
jobs:
workflow-build:
uses: ./.github/workflows/workflow-build.yml
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
1 change: 1 addition & 0 deletions .github/workflows/workflow-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ jobs:
steps:
- name: Get disk space
run: |
df -h /
sudo rm -rf \
"$AGENT_TOOLSDIRECTORY" \
/opt/google/chrome \
Expand Down
1,380 changes: 1,351 additions & 29 deletions commandList.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/API/CollectionClass.md
Original file line number Diff line number Diff line change
Expand Up @@ -2229,8 +2229,8 @@ You can also pass a criteria parameter to define how the collection elements mus

|Constant| Type|Value|Comment|
|---|---|---|---|
|ck ascending|Longint|0|Elements are ordered in ascending order (default)|
|ck descending|Longint|1|Elements are ordered in descending order
|ck ascending|Integer|0|Elements are ordered in ascending order (default)|
|ck descending|Integer|1|Elements are ordered in descending order

This syntax orders scalar values in the collection only (other element types such as objects or collections are returned unordered).

Expand Down
2 changes: 1 addition & 1 deletion docs/API/CryptoKeyClass.md
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ Contains the <!-- REF #CryptoKey.type.Summary -->name of the key type - "RSA", "
|18 R4|Added
</details>

<!-- REF #CryptoKey.verify().Syntax -->**.verify**( *message* : Text ; *signature* : Text ; *options* : Object) : object<!-- END REF -->
<!-- REF #CryptoKey.verify().Syntax -->**.verify**( *message* : Text ; *signature* : Text ; *options* : Object) : Object<!-- END REF -->


<!-- REF #CryptoKey.verify().Params -->
Expand Down
6 changes: 3 additions & 3 deletions docs/API/DataClassClass.md
Original file line number Diff line number Diff line change
Expand Up @@ -726,9 +726,9 @@ The `data` object in each entry contains the following properties:

|Property|Type|Description|
|---|---|---|
|__KEY|String|Primary key of the entity|
|__STAMP|Longint|Timestamp of the entity in the database|
|__TIMESTAMP|String|Stamp of the entity in the database (format is YYYY-MM-DDTHH:MM:SS:ms:Z)|
|__KEY|Text|Primary key of the entity|
|__STAMP|Integer|Timestamp of the entity in the database|
|__TIMESTAMP|Text|Stamp of the entity in the database (format is YYYY-MM-DDTHH:MM:SS:ms:Z)|
|dataClassAttributeName|Variant|If there is data in the cache for a dataclass attribute, it is returned in a property with the same type as in the database.|

Data concerning related entities is stored in the cache of the data object.
Expand Down
2 changes: 1 addition & 1 deletion docs/API/EntityClass.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ The differences are returned as a collection of objects whose properties are:

|Property name| Type| Description|
|---|---|---|
|attributeName| String| Name of the attribute
|attributeName| Text| Name of the attribute
|value|any - Depends on attribute type |Value of the attribute in the entity|
|otherValue|any - Depends on attribute type|Value of the attribute in *entityToCompare*|

Expand Down
10 changes: 8 additions & 2 deletions docs/API/EntitySelectionClass.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ title: EntitySelection

An entity selection is an object containing one or more reference(s) to [entities](ORDA/dsMapping.md#entity) belonging to the same [Dataclass](ORDA/dsMapping.md#dataclass). An entity selection can contain 0, 1 or X entities from the dataclass -- where X can represent the total number of entities contained in the dataclass.

Entity selections can be created from existing selections using various functions of the [`DataClass` class](DataClassClass.md) such as [`.all()`](DataClassClass.md#all) or [`.query()`](DataClassClass.md#query), or functions of the `EntityClass` class itself, such as [`.and()`](#and) or [`orderBy()`](#orderby). You can also create blank entity selections using the [`dataClass.newSelection()`](DataClassClass.md#newselection) function or the [`Create new selection`](../commands/create-entity-selection.md) command.
Entity selections can be created from existing selections using various functions of the [`DataClass` class](DataClassClass.md) such as [`.all()`](DataClassClass.md#all) or [`.query()`](DataClassClass.md#query), or functions of the `EntityClass` class itself, such as [`.and()`](#and) or [`orderBy()`](#orderby). You can also create blank entity selections using the [`dataClass.newSelection()`](DataClassClass.md#newselection) function or the [`Create entity selection`](../commands/create-entity-selection.md) command.




### Summary

Expand Down Expand Up @@ -49,6 +52,9 @@ Entity selections can be created from existing selections using various function
|[<!-- INCLUDE #EntitySelectionClass.toCollection().Syntax -->](#tocollection)<br/><!-- INCLUDE #EntitySelectionClass.toCollection().Summary -->|


#### See also

[`USE ENTITY SELECTION`](../commands/use-entity-selection.md)


<!-- REF EntitySelectionClass.index.Desc -->
Expand Down Expand Up @@ -2183,7 +2189,7 @@ $sum:=$sel.sum("salary")

</details>

<!-- REF #EntitySelectionClass.toCollection().Syntax -->**.toCollection**( { *options* : Integer { ; *begin* : Integer { ; *howMany* : Integer } } ) : *Collection*<br/>**.toCollection**( *filterString* : Text {; *options* : Integer { ; *begin* : Integer { ; *howMany* : Integer }}} ) : *Collection*<br/>**.toCollection**( *filterCol* : Collection {; *options* : Integer { ; *begin* : Integer { ; *howMany* : Integer }}} ) : *Collection*<!-- END REF -->
<!-- REF #EntitySelectionClass.toCollection().Syntax -->**.toCollection**( { *options* : Integer { ; *begin* : Integer { ; *howMany* : Integer } } ) : Collection<br/>**.toCollection**( *filterString* : Text {; *options* : Integer { ; *begin* : Integer { ; *howMany* : Integer }}} ) : Collection<br/>**.toCollection**( *filterCol* : Collection {; *options* : Integer { ; *begin* : Integer { ; *howMany* : Integer }}} ) : Collection<!-- END REF -->


<!-- REF #EntitySelectionClass.toCollection().Params -->
Expand Down
3 changes: 3 additions & 0 deletions docs/API/HTTPRequestClass.md
Original file line number Diff line number Diff line change
Expand Up @@ -486,4 +486,7 @@ The `wait()` function <!-- REF #HTTPRequestClass.wait().Summary -->waits for the
If a *time* parameter is passed, the function will wait at most the defined number of seconds.

If the response from the server has already arrived, the function returns immediately.

During a `.wait()` execution, callback functions are executed, whether from other `HTTPRequest` or [`SystemWorker`](SystemWorkerClass.md) instances, or other [`CALL WORKER`](../commands-legacy/call-worker.md) calls. You can exit from a `.wait()` by calling [`terminate()`](#terminate) from a callback.

<!-- END REF -->
41 changes: 25 additions & 16 deletions docs/API/SessionClass.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ Session objects are returned by the [`Session`](../commands/session.md) command.

### Session types

Three types of sessions are supported by this class:
The following types of sessions are supported by this class:

- [**Web user sessions**](WebServer/sessions.md): Web user sessions are available when [scalable sessions are enabled in your project](WebServer/sessions.md#enabling-sessions). They are used for Web and REST connections, and can be assigned privileges.
- [**Remote client user sessions**](../Desktop/clientServer.md#remote-user-sessions): In client/server applications, remote users have their own sessions managed on the server.
- [**Stored procedures session**](https://doc.4d.com/4Dv20R5/4D/20-R5/4D-Server-and-the-4D-Language.300-6932726.en.html): All stored procedures executed on the server share the same virtual user session.
- [**Standalone session**](../Project/overview.md#development): Local session object returned in single-user application (useful in development and test phases of client/server applications).


:::note

Expand Down Expand Up @@ -67,7 +69,7 @@ The availability of properties and functions in the `Session` object depends on

:::note

This function does nothing and always returns **True** with remote client and stored procedure sessions.
This function does nothing and always returns **True** with remote client, stored procedure, and standalone sessions.

:::

Expand Down Expand Up @@ -148,7 +150,7 @@ $expiration:=Session.expirationDate //eg "2021-11-05T17:10:42Z"

The `.getPrivileges()` function <!-- REF #SessionClass.getPrivileges().Summary -->returns a collection of all the privilege names associated to the session<!-- END REF -->.

With remote client and stored procedure sessions, this function returns a collection only containing "WebAdmin".
With remote client, stored procedure and standalone sessions, this function returns a collection only containing "WebAdmin".


:::info
Expand Down Expand Up @@ -252,7 +254,7 @@ $privileges := Session.getPrivileges()

The `.hasPrivilege()` function <!-- REF #SessionClass.hasPrivilege().Summary -->returns True if the *privilege* is associated to the session, and False otherwise<!-- END REF -->.

With remote client and stored procedure sessions, this function always returns True, whatever the *privilege*.
With remote client, stored procedure and standalone sessions, this function always returns True, whatever the *privilege*.


#### Example
Expand Down Expand Up @@ -286,12 +288,12 @@ End if

#### Description

The `.id` property contains <!-- REF #SessionClass.id.Summary -->the unique identifier (UUID) of the session on the server<!-- END REF -->. This unique string is automatically assigned by the server for each session and allows you to identify its processes.
The `.id` property contains <!-- REF #SessionClass.id.Summary -->the unique identifier (UUID) of the user session<!-- END REF -->. With 4D Server, this unique string is automatically assigned by the server for each session and allows you to identify its processes.


:::tip

You can use this property to get the [`.storage`](#storage) object of a session thanks to the [`Session storage`](../commands-legacy/session-storage.md) command.
You can use this property to get the [`.storage`](#storage) object of a session thanks to the [`Session storage`](../commands/session-storage.md) command.

:::

Expand Down Expand Up @@ -366,28 +368,34 @@ End if

:::note

This property is only available with remote client and stored procedure sessions.
This property is only available with remote client, stored procedure, and standalone sessions.

:::

The `.info` property <!-- REF #SessionClass.info.Summary -->describes the remote client or stored procedure session on the server<!-- END REF -->.
The `.info` property <!-- REF #SessionClass.info.Summary -->describes the remote client or stored procedure session on the server, or the standalone session<!-- END REF -->.

:::note

- The `.info` object is the same object as the one returned in the "session" property by the [`Process activity`](../commands/process-activity.md) command for remote client and stored procedure sessions.
- The `.info` object is the same object as the one returned by the [`Session info`](../commands/session-info.md) command for a standalone session.


The `.info` object is the same object as the one returned by the [`Get process activity`](https://doc.4d.com/4dv20/help/command/en/page1495.html) command for remote client and stored procedure sessions.
:::

The `.info` object contains the following properties:

|Property|Type|Description|
|---|---|---|
|type|Text|Session type: "remote" or "storedProcedure"|
|type|Text|Session type: "remote", "storedProcedure", "standalone"|
|userName|Text|4D user name (same value as [`.userName`](#username))|
|machineName|Text|Remote sessions: name of the remote machine. Stored procedures session: name of the server machine|
|machineName|Text|Remote sessions: name of the remote machine. Stored procedures session: name of the server machine. Standalone session: name of the machine|
|systemUserName|Text|Remote sessions: name of the system session opened on the remote machine. |
|IPAddress|Text|IP address of the remote machine|
|hostType|Text|Host type: "windows" or "mac"|
|creationDateTime|Date ISO 8601|Date and time of session creation|
|creationDateTime|Date ISO 8601|Date and time of session creation. Standalone session: date and time of application startup|
|state|Text|Session state: "active", "postponed", "sleeping"|
|ID|Text|Session UUID (same value as [`.id`](#id))|
|persistentID|Text|Session's persistent ID|
|persistentID|Text|Remote sessions: Session's persistent ID|

:::note

Expand Down Expand Up @@ -423,7 +431,7 @@ Since `.info` is a computed property, it is recommended to call it once and then

:::note

This function always returns **False** with remote client and stored procedure sessions.
This function always returns **False** with remote client, stored procedure, and standalone sessions.

:::

Expand Down Expand Up @@ -472,7 +480,7 @@ End if

:::note

This function does nothing and always returns **False** with remote client and stored procedure sessions.
This function does nothing and always returns **False** with remote client, stored procedure, and standalone sessions.

:::

Expand Down Expand Up @@ -552,7 +560,7 @@ This property is **read only** itself but it returns a read-write object.

:::tip

You can get the `.storage` property of a session using the [`Session storage`](../commands-legacy/session-storage.md) command.
You can get the `.storage` property of a session using the [`Session storage`](../commands/session-storage.md) command.

:::

Expand Down Expand Up @@ -608,6 +616,7 @@ The `.userName` property contains <!-- REF #SessionClass.userName.Summary -->the

- With web sessions, this property is an empty string by default. It can be set using the `privileges` property of the [`setPrivileges()`](#setprivileges) function.
- With remote and stored procedure sessions, this property returns the same user name as the [`Current user`](../commands-legacy/current-user.md) command.
- With standalone sessions, this property contains "designer" or the name set with the [`SET USER ALIAS`](../commands-legacy/set-user-alias.md) command.

This property is **read only**.

Expand Down
2 changes: 1 addition & 1 deletion docs/API/WebFormClass.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ For more information, please refer to the [`webForm` command description in the

## Web Event

<!-- REF #_command_.Web Event.Syntax -->**Web Event** : object<!-- END REF -->
<!-- REF #_command_.Web Event.Syntax -->**Web Event** : Object<!-- END REF -->

<!-- REF #_command_.Web Event.Params -->
|Parameter|Type||Description|
Expand Down
26 changes: 13 additions & 13 deletions docs/API/WebServerClass.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ Contains the <!-- REF #WebServerClass.CORSSettings.Summary -->list of allowed ho

## .debugLog

<!-- REF #WebServerClass.debugLog.Syntax -->**.debugLog** : Number<!-- END REF -->
<!-- REF #WebServerClass.debugLog.Syntax -->**.debugLog** : Integer<!-- END REF -->


The <!-- REF #WebServerClass.debugLog.Summary -->status of the HTTP request log file<!-- END REF --> (HTTPDebugLog_nn.txt, stored in the "Logs" folder of the application -- nn is the file number).
Expand Down Expand Up @@ -198,7 +198,7 @@ The <!-- REF #WebServerClass.HSTSEnabled.Summary -->HTTP Strict Transport Securi



<!-- REF #WebServerClass.HSTSMaxAge.Syntax -->**.HSTSMaxAge** : Number<!-- END REF -->
<!-- REF #WebServerClass.HSTSMaxAge.Syntax -->**.HSTSMaxAge** : Integer<!-- END REF -->


The <!-- REF #WebServerClass.HSTSMaxAge.Summary -->maximum length of time (in seconds) that HSTS is active for each new client connection<!-- END REF -->. This information is stored on the client side for the specified duration.
Expand All @@ -211,7 +211,7 @@ Default value: 63072000 (2 years).

## .HTTPCompressionLevel

<!-- REF #WebServerClass.HTTPCompressionLevel.Syntax -->**.HTTPCompressionLevel** : Number<!-- END REF -->
<!-- REF #WebServerClass.HTTPCompressionLevel.Syntax -->**.HTTPCompressionLevel** : Integer<!-- END REF -->


The <!-- REF #WebServerClass.HTTPCompressionLevel.Summary -->compression level for all compressed HTTP exchanges for the 4D HTTP server (client requests or server replies)<!-- END REF -->. This selector lets you optimize exchanges by either prioritizing speed of execution (less compression) or the amount of compression (less speed).
Expand All @@ -229,7 +229,7 @@ Default = 1 (faster compression).

## .HTTPCompressionThreshold

<!-- REF #WebServerClass.HTTPCompressionThreshold.Syntax -->**.HTTPCompressionThreshold** : Number<!-- END REF -->
<!-- REF #WebServerClass.HTTPCompressionThreshold.Syntax -->**.HTTPCompressionThreshold** : Integer<!-- END REF -->


The <!-- REF #WebServerClass.HTTPCompressionThreshold.Summary -->size threshold (bytes) for requests below which exchanges should not be compressed<!-- END REF -->. This setting is useful in order to avoid losing machine time by compressing small exchanges.
Expand All @@ -253,7 +253,7 @@ The <!-- REF #WebServerClass.HTTPEnabled.Summary -->HTTP protocol state<!-- END

## .HTTPPort

<!-- REF #WebServerClass.HTTPPort.Syntax -->**.HTTPPort** : Number<!-- END REF -->
<!-- REF #WebServerClass.HTTPPort.Syntax -->**.HTTPPort** : Integer<!-- END REF -->


The <!-- REF #WebServerClass.HTTPPort.Summary -->listening IP port number for HTTP<!-- END REF -->.
Expand Down Expand Up @@ -288,7 +288,7 @@ The <!-- REF #WebServerClass.HTTPSEnabled.Summary -->HTTPS protocol state<!-- EN

## .HTTPSPort

<!-- REF #WebServerClass.HTTPSPort.Syntax -->**.HTTPSPort** : Number<!-- END REF -->
<!-- REF #WebServerClass.HTTPSPort.Syntax -->**.HTTPSPort** : Integer<!-- END REF -->


The <!-- REF #WebServerClass.HTTPSPort.Summary -->listening IP port number for HTTPS<!-- END REF -->.
Expand All @@ -301,7 +301,7 @@ Default = 443

## .inactiveProcessTimeout

<!-- REF #WebServerClass.inactiveProcessTimeout.Syntax -->**.inactiveProcessTimeout** : Number<!-- END REF -->
<!-- REF #WebServerClass.inactiveProcessTimeout.Syntax -->**.inactiveProcessTimeout** : Integer<!-- END REF -->

> This property is not returned in [scalable sessions mode](#scalablesession).
Expand All @@ -315,7 +315,7 @@ Default = 480 minutes

## .inactiveSessionTimeout

<!-- REF #WebServerClass.inactiveSessionTimeout.Syntax -->**.inactiveSessionTimeout** : Number<!-- END REF -->
<!-- REF #WebServerClass.inactiveSessionTimeout.Syntax -->**.inactiveSessionTimeout** : Integer<!-- END REF -->

> This property is not returned in [scalable sessions mode](#scalablesession).
Expand Down Expand Up @@ -368,7 +368,7 @@ Contains <!-- REF #WebServerClass.keepSession.Summary -->`True` if legacy sessio

## .logRecording

<!-- REF #WebServerClass.logRecording.Syntax -->**.logRecording** : Number<!-- END REF -->
<!-- REF #WebServerClass.logRecording.Syntax -->**.logRecording** : Integer<!-- END REF -->


The <!-- REF #WebServerClass.logRecording.Summary -->log requests (logweb.txt) recording value<!-- END REF -->.
Expand All @@ -385,7 +385,7 @@ The <!-- REF #WebServerClass.logRecording.Summary -->log requests (logweb.txt) r

## .maxConcurrentProcesses

<!-- REF #WebServerClass.maxConcurrentProcesses.Syntax -->**.maxConcurrentProcesses** : Number<!-- END REF -->
<!-- REF #WebServerClass.maxConcurrentProcesses.Syntax -->**.maxConcurrentProcesses** : Integer<!-- END REF -->


The <!-- REF #WebServerClass.maxConcurrentProcesses.Summary -->maximum number of concurrent web processes supported by the web server<!-- END REF -->. When this number (minus one) is reached, 4D will not create any other processes and returns the HTTP status 503 - Service Unavailable to all new requests.
Expand All @@ -400,7 +400,7 @@ Default = 100

## .maxRequestSize

<!-- REF #WebServerClass.maxRequestSize.Syntax -->**.maxRequestSize** : Number<!-- END REF -->
<!-- REF #WebServerClass.maxRequestSize.Syntax -->**.maxRequestSize** : Integer<!-- END REF -->


Contains the <!-- REF #WebServerClass.maxRequestSize.Summary -->maximum size (in bytes) of incoming HTTP requests (POST) that the web server is allowed to process<!-- END REF -->. Passing the maximum value (2147483647) means that, in practice, no limit is set. This limit is used to avoid web server saturation due to incoming requests that are too large. If a request reaches this limit, the web server rejects it.
Expand All @@ -413,7 +413,7 @@ Possible values: 500000 - 2147483647

## .maxSessions

<!-- REF #WebServerClass.maxSessions.Syntax -->**.maxSessions** : Number<!-- END REF -->
<!-- REF #WebServerClass.maxSessions.Syntax -->**.maxSessions** : Integer<!-- END REF -->

> This property is not returned in [scalable sessions mode](#scalablesession).
Expand All @@ -425,7 +425,7 @@ Contains the <!-- REF #WebServerClass.maxSessions.Summary -->maximum number of s

## .minTLSVersion

<!-- REF #WebServerClass.minTLSVersion.Syntax -->**.minTLSVersion** : Number<!-- END REF -->
<!-- REF #WebServerClass.minTLSVersion.Syntax -->**.minTLSVersion** : Integer<!-- END REF -->


The <!-- REF #WebServerClass.minTLSVersion.Summary -->minimum TLS version accepted for connections<!-- END REF -->. Connection attempts from clients supporting only versions below the minimum will be rejected.
Expand Down
2 changes: 1 addition & 1 deletion docs/API/WebSocketClass.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ This property is read-only.
<!-- REF #WebSocketClass.id.Desc -->
## .id

<!-- REF #WebSocketClass.id.Syntax -->**.id** : Longint<!-- END REF -->
<!-- REF #WebSocketClass.id.Syntax -->**.id** : Integer<!-- END REF -->

#### Description

Expand Down
Loading

0 comments on commit f243299

Please sign in to comment.