Official Content

Determines whether users will be able to have multiple concurrent sessions or only one. When users can have multiple concurrent sessions, you may specify whether these sessions must be established from the same IP. This is checked when a user logs in.

Syntax

&GAMSecurityPolicy.AllowMultipleConcurrentWebSessions = GAMAllowMultipleConcurrentSessions.Value

Where:

&GAMSecurityPolicy
 
 Is a variable based on the GAMSecurityPolicy data type.

GAMAllowMultipleConcurrentSessions.Value
   One of the possible values offered by the GAMAllowMultipleConcurrentSessions domain.

   Values

Domain value to be used in the code GAM Web Backoffice Description
GAMAllowMultipleConcurrentSessions.Unique No Multiple concurrent sessions are not allowed. If a session is created and another already exists, the first one is killed.
GAMAllowMultipleConcurrentSessions.Diferent_IP Yes Multiple concurrent sessions are allowed.
GAMAllowMultipleConcurrentSessions.N_Same_IP Yes, from the same IP Multiple concurrent sessions are allowed, only from the same IP.


Description

This property allows determining whether users will be able to have multiple concurrent sessions or only one. 

When users can have multiple concurrent sessions, you may specify whether these sessions must be established from the same IP. This is checked when a user logs in.

Note: When using the GAM Backoffice, this property is shown with the description "Allow Multiple Concurrent Web Sessions".

Consider that the property UserSessionCacheTimeout property in GAMRepository EO determines a delay for the destruction of the session when it is going to be destroyed (because another session was created from another IP, for example).

Samples

To set this property in the GeneXus code (by using the GAM API), the syntax is as follows:

&GAMAllowMultipleConcurrentSessions = GAMAllowMultipleConcurrentSessions.Diferent_IP
&GAMSecurityPolicy.AllowMultipleConcurrentWebSessions = &GAMAllowMultipleConcurrentSessions  

The &GAMAllowMultipleConcurrentSessions variable is based on the GAMAllowMultipleConcurrentSessions domain.

See Also

GAM Repository features and properties

     

Last update: June 2025 | © GeneXus. All rights reserved. GeneXus Powered by Globant