on 10-30-2015 7:51 AM
Hi
I was trying to create a simple splitapp with routing.
The problem I am facing is that if the session times out, and I click on a button whose action is to route to another view, I get a rendering error instead of getting any prompt to enter credentials.
This problem is resolved by a page refresh, but is there any way we can automate this and open SAP HANA Login page? (ex: HANA Web IDE opens up a login page when session times out).
Thanks & Regards,
Chirag
Hi Chirag,
Handling Session Timeout information can be found at
Regards,
Jamie
SAP - Technology RIG
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Placing it either in the oninit of the main controller or the index should be fine. You may want to also add another listener for you model, it seems that the only the file requests rely on jquery.
I don't see anyway of checking the com.sap.cloud.security.login header in the model so you could do something like
oModel.attachRequestCompleted(function(evt) {
if(!evt.getParameter("success")){
//load the index or some other small file to see if the session is active
//ajaxComplete will check the session header
$.ajax({
"url": "/index.html"
});
}
});
Regards,
Jamie
SAP - Technology RIG
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.