Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

In continuation with the quick user logout functionality, this feature aims to redirect the user from where they logged out from, if the same user logs back in within the configured time frame. This feature is particularly useful in a hospital setting, where users often share computers.

The feature introduces context support between logout and re-login for all Bahmni app modules. It is enabled when the global property contextcookieexpirationtimeinminutes is set to a non-null positive integer. When this property is set, the page from which the user logs out will be stored in the context, and upon re-login, the user will be redirected to the same page.

This feature is currently available only on pages where a logout button in the header.

How does it work?

When a user logs out using the logout button or the quick logout shortcut ("Cmd + Esc"), context of the user's session is stored in cache. Upon re-login within the configured time frame, as set in the contextcookieexpirationtimeinminutes global property, the user will be redirected to the same page from where they had logged out.

Configuration

Below is an example of how contextcookieexpirationtimeinminutes can be introduced via the initializer:

Example Configuration in bahmniConfig.xml

<config>
  <globalProperties>
    <globalProperty>
        <property>bahmni.contextCookieExpirationTimeInMinutes</property>
        <value>30</value> 
        <description>Expiration time of the cookie which maintains the context of the user</description>
    </globalProperty>
  </globalProperties>
</config>

Alternately, you can head over to Advanced Settings Tab and update the expiration time of the cookie which maintains the context of the user.

Next Steps

Explore other related features and configurations in Bahmni:

Feedback

For feedback or issues with the Quick User Logout feature, please file an issue on the Bahmni GitHub or contact support through the Bahmni Community Forum.

  • No labels