SCD
SCD

Reputation: 85

Capture Session Timeout in SAP cloud foundry application

Iam developing a SAP CF app and wnated to capture session timeout and show pop-up to user before session timeout happs to either refresh the session or execute the logout ,but setting the env variable SESSION_TIMEOUT as given in the link is also not working neither central logout is triggered : https://help.sap.com/viewer/4505d0bdaf4948449b7f7379d24d0f0d/2.0.03/en-US/0aac697f0cf7444193ed5eb0fc6e5bd0.html#loio0aac697f0cf7444193ed5eb0fc6e5bd0__section_blz_hgn_mv

cf set-env SESSION_TIMEOUT 1

it is not triggering the central logout endpoint configured in xs-app.json. My client initiated central logout is working as expected.

please help with any suggestions and pointers ,my requirement is to capture central logout event on session expiry and show popup to user to either refresh the session or execute logout but this is not working in SAP Cloud foundry environment ,please help.

Upvotes: 0

Views: 2781

Answers (2)

Dennis H
Dennis H

Reputation: 589

The documentation you linked to is for the HANA XS advanced model, which I think is different to the approuter used on Cloud Foundry. Therefore, I'd assume that the documentation won't help you much.

Adding an environment variable to your app alone won't do much either, I fear. Unless you tell your app to do something with that.

Bottom-line: I think you need to implement that functionality yourself.

Upvotes: 0

Junjie Tang
Junjie Tang

Reputation: 374

To be honest, I have no experience about this.

But the link provided (https://help.sap.com/viewer/4505d0bdaf4948449b7f7379d24d0f0d/2.0.03/en-US/5f77e58ec01b46f6b64ee1e2afe3ead7.html#loio5f77e58ec01b46f6b64ee1e2afe3ead7__section_imh_gsy_lv) is about the app router configuration.

It says,

The sessionTimeout property is no longer available; to set the session time out value, use the environment variable .

Therefore, I would try to set the environment variable for the app router as well, e.g., via the manifest.yaml.

Upvotes: 1

Related Questions