Theme
arya
luna-amber
luna-blue
luna-green
luna-pink
nova-dark
nova-light
saga
vela
Session
The basic configuration for client-side session management.
Source

                <pe:session onexpire="PF('sessionDialog').show()"
                onexpired="PF('sessionDialog').hide();PF('sessionExpiredDialog').show()"
                reactionPeriod="60"
                multiWindowSupport="true" />

    <p:dialog widgetVar="sessionDialog" header="Session Warning">
        <p>
            Your session is about to expire.
        </p>
        <h:form>
            <p:commandButton value="Keep my session alive." onsuccess="PF('sessionDialog').hide()"/>
        </h:form>
    </p:dialog>

    <p:dialog widgetVar="sessionExpiredDialog" header="Session Expired">
        <p>
            Your session has expired.
        </p>
    </p:dialog>
            
Components and more
Use Cases
Documentation pe:session
Attributes (move mouse over the names to see data types)
Name Description
onexpireClient-side Javascript invoked when the session is about to expire.
onexpiredClient-side Javascript invoked when the session has expired.
reactionPeriod Optional reaction period in seconds for the user to extend the session. Defaults to 60 seconds.
multiWindowSupport When set to true, the lastAccessed state will be shared between all browser windows for the same servlet context. Default true.
PrimeFaces Extensions Showcase - © 2011-2023,PrimeFaces: 14.0.5,PrimeFaces Extensions: 14.0.5,JSF: Apache MyFaces JSF-2.3 Core Impl 2.3.10,Server: jetty/9.4.36.v20210114,Build time: 2024-09-10 21:01