Overview

Session timeout is an event which occurs when a user do not perform any action on a web page for an interval after which session expires. Session timeout can be configured on web server. On expiration of session all the data persisted in user session is destroyed. Ephesoft now warns the user 1 minute before session is about to expire.

Following pop up shown will be shown 1 minute before the session is about to expire.

 

400px-3.1_SessionTimeout_10001

 

User will have two options either user can click on ‘Continue’ to renew the session or ‘Cancel’ to close the warning popup. If the user performs no option for 1 minute user will be redirected to Ephesoft home page. Please refer below:-

 

400px-3.1_SessionTimeout_10002

 

Configuration

On JEE web application, there 2 ways to configure session timeout,

  1. Declaratively in web deployment descriptor (file “web.xml”): This configuration is applied to all user sessions created for the application.
  2. Programmatically on session object: This definition apply only on current session.

Session timeout in Ephesoft is configurable from “web.xml”. For enabling session-timeout pop up user needs to configure same time as configured in web.xml in “session-timeout.js”.

In web.xml (Application/WEB-INF/web.xml), time out can be configured declaratively as shown in snapshot:-

 

400px-3.1_SessionTimeout_10003

 

Same time configured in web.xml above needs to be configured in session-timeout.js (Application/js/sessionTimeout/session-timeout.js). Please refer below:-

 

400px-3.1_SessionTimeout_10004

 

Conclusion

Ephesoft will now warn the user 1 minute before the session is about to expire.

Was this article helpful to you?

wikiadmin