Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2106

How to get the authentication session and pass it to $.db.getConnection?

$
0
0

Hi All,

 

I am creating an xsjs service which does a simple select query and return a response but when I hit the xsjs url in the browser, I get the following error:

 

{"Error":"db.getConnection: expects an authenticated session"}

 

How do I get the authentication session and pass it on to $.db.getConnection? Any ideas?


Currently, I am doing the following:

 

   var conn = $.db.getConnection();
var pstmt = conn.prepareStatement(query);

var rs = pstmt.executeQuery();

 

Thank you!


Viewing all articles
Browse latest Browse all 2106

Latest Images

Trending Articles



Latest Images

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