I was wondering if it was at all possible to store the session (cookie?) that is created with plugins.http.createHttpClient() so it can be used over and over within the same Smart Client session.
e.g.
I call a method that does this…
plugins.http.createHttpClient(‘mybrowser’);
then maybe 5 minuets later I call a method that does this…
var pageData = plugins.http.getPageData(urlString1,‘mybrowser’);
then maybe 15 minuets later I call a different method that does this…
var pageData = plugins.http.getPageData(urlString2,‘mybrowser’);
But in this second use of ‘mybrowser’ I want to use the same session that I established 15 minuets ago. As it appears now the HttpClient only lives for the lifetime of inital the method execution, after the method that created ‘mybrower’ exits - ‘mybrower’ is gone. So what I’m looking for is the ability to store ‘mybrowser’ in a global variable, or have ‘mybrowser’ live for the life of the Smart Client session.