cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to retrieve the Service Layer sessionID and RouteID with SAPUi5?

former_member260921
Participant
0 Kudos
2,054

Hi,

What is the best way to determine sessionID and routeID in Java Script for a Fiori/Sapui5 app that is in the SAP HANA Web-based Development Workbench Editor.

Thanks,

Mel

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member197733
Contributor
0 Kudos

RouteID and SessionID are part of a cookie that comes in the response of the POST /Login Request.

An UI5 app runs in the Web Browser, which natively stores those cookies and send them is every upcoming request.

That means, you do not need to handle them. We have shown that here.

By your other posts, I understand you are using Jquery. So, If you still need the cookies for something else, please check:

How to get a cookie from an AJAX response?