Skip to Content
avatar image
Former Member

Any way to force web-ide login page with session timing out?

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Oct 30, 2015 at 12:15 PM

    Hi Chirag,

    Handling Session Timeout information can be found at

    SAP HANA Cloud Platform

    Regards,

    Jamie

    SAP - Technology RIG

    Add comment
    10|10000 characters needed characters exceeded

    • 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