Quantcast
Channel: SCN: Message List - SAP HANA and In-Memory Computing
Viewing all articles
Browse latest Browse all 8968

Re: Cookie parameters in .xsjs

$
0
0

Hi Thomas,

 

For a vanilla HTTP call to an XSJS endpoint, I could not find a viable way to send back an HTTP cookie with cookie properties such as "HTTP-Only", "Path" or "Expires" set.

 

The following code does NOT set these properties as expected:

 

$.response.cookies.set('cookiename', "value;expires=" + new Date().toJSON().toString() + ";domain=.example.com;path=/;");

 

but instead, sets the value of the "cookiename" cookie to the entire string.

 

It would be a big help to actually be able to set these cookie properties in a normal HTTP call. Is there any other way to achieve this?

 

Regards,

Abhik


Viewing all articles
Browse latest Browse all 8968

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>