[Factory Configuration] How to change the session timeout in Factory Configuration

[Factory Configuration] How to change the session timeout in Factory Configuration

  
Forge Component
(14)
Published on 2 Oct (3 weeks ago) by OutSystems R&D
14 votes
Published on 2 Oct (3 weeks ago) by OutSystems R&D

How to change the session timeout in Factory Configuration


The session timeout is the period of time that a session can remain idle, without any end-user interaction, before the Platform Server ends the session automatically. OutSystems uses the session mechanisms to manage its sessions.

To change the session timeout in OutSystems on-premises environments you must add a custom configuration at the level of the IIS application server. Follow this link for more information.

To change the session timeout in OutSystems cloud-hosted environments follow these steps:

  1. In the Shared Configurations tab create a new Shared Configuration with the following details:

    Name SetSessionTime

    Kind: web.config_XSL

    Value:

    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
        <xsl:output method="xml" indent="yes" encoding="UTF-8"/>
        <xsl:template match="@*|node()">
            <xsl:copy>
                <xsl:apply-templates select="@*|node()"/>
            </xsl:copy>
        </xsl:template>
        <xsl:template match="/configuration/system.web/sessionState">
            <xsl:copy>
                <xsl:attribute name="timeout">60</xsl:attribute>
                <xsl:apply-templates select="@*|node()"/>
            </xsl:copy>
        </xsl:template>
    </xsl:stylesheet>
    
  2. In the eSpaces tab select the eSpaces that will have the new timeout duration and associate the shared configuration with them.

  3. Republish the eSpaces to generate the updated web.config files with the new timeout value.

Great Help , I managed to change this in machine.config ..before reading this article.


Regards

-PJ-

Is this for .NET only, correct? Could you show me the value for J2EE?

Does the shared config need to be associated with all the modules of the application? Or, only on the module that contains the login action?