cookiestore
5 min
the cookiestore object retrieves a list of cookies from the containing browser (which implies that this class is only available for code running inside a browser instance, not from ronodejs) cookiestore idl interface cookie { attribute string domain; attribute string path; attribute string name; attribute string value; }; interface cookiestore { array\<cookie> getcookies(); } object creation let cookiestoreclass = require("@brightsign/cookiestore"); let cookiestore = new cookiestoreclass(); cookie getcookies() array\<cookie> getcookies() gets cookies from the containing browser domain \<font color="#704ae0">string\</font> specifies the hosts that are allowed to receive the cookie, including subdomains path \<font color="#704ae0">string\</font> to send the cookie header, this url path must exist in the url request name \<font color="#704ae0">string\</font> the name of the cookie value \<font color="#704ae0">string\</font> the value of the cookie example to list the cookies saved on a browser instance on a console let cookiestoreclass = require("@brightsign/cookiestore"); let cookiestore = new cookiestoreclass(); let cookies = cookiestore getcookies(); cookies foreach((cookie) => {console log("cookie domain " + cookie domain + " cookie path " + cookie path + " cookie name " + cookie name + " cookie value " + cookie value)});