<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Support For Cookies in MQX 3.8? in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/Support-For-Cookies-in-MQX-3-8/m-p/167120#M1679</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Tim.&lt;/P&gt;&lt;P&gt;Yes, you can use cookies with MQX. It really has nothing to do with MQX though. I use a Javascript function to store the cookies, and then one to retrive the cookies. On a page load, I call "getCookie()" for each of the variables that I want restored from the web browser's cookie store, and when necessary, I call "setCookie()" to store them off in the browser. Once you've restored the cookies to a Javascript variable, then you could push that value to a hidden form field, or append the values in your html request string to send it to your MQX functions for parsing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use the exact functions from this page:&amp;nbsp;&lt;A href="http://www.w3schools.com/js/js_cookies.asp" rel="nofollow" target="_blank"&gt;http://www.w3schools.com/js/js_cookies.asp&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good luck,&lt;/P&gt;&lt;P&gt;Neil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Jun 2012 19:06:34 GMT</pubDate>
    <dc:creator>dspNeil</dc:creator>
    <dc:date>2012-06-05T19:06:34Z</dc:date>
    <item>
      <title>Support For Cookies in MQX 3.8?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Support-For-Cookies-in-MQX-3-8/m-p/167119#M1678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Does anyone know if there is any support for browser cookies in MQX 3.8? I need some way to secure web pages served by the MQX&amp;nbsp;http server on my device. Once I've prompted a client to enter a username/password (and validated it) I would like to store that info in a cookie that the browser would supply along with it's page requests (no cookie info they get the login page). I make extensive use of MQX's cgi abilities and&amp;nbsp;I wonder if some cgi function call could be executed to read the cookie info (or detect the lack of it)?&amp;nbsp; Maybe I'm completely off base here and there's some other, better, way to do this? Thanks in advance for any advice or helpfull suggestions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;~Tim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 May 2012 23:54:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Support-For-Cookies-in-MQX-3-8/m-p/167119#M1678</guid>
      <dc:creator>Tim562</dc:creator>
      <dc:date>2012-05-27T23:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: Support For Cookies in MQX 3.8?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Support-For-Cookies-in-MQX-3-8/m-p/167120#M1679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Tim.&lt;/P&gt;&lt;P&gt;Yes, you can use cookies with MQX. It really has nothing to do with MQX though. I use a Javascript function to store the cookies, and then one to retrive the cookies. On a page load, I call "getCookie()" for each of the variables that I want restored from the web browser's cookie store, and when necessary, I call "setCookie()" to store them off in the browser. Once you've restored the cookies to a Javascript variable, then you could push that value to a hidden form field, or append the values in your html request string to send it to your MQX functions for parsing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use the exact functions from this page:&amp;nbsp;&lt;A href="http://www.w3schools.com/js/js_cookies.asp" rel="nofollow" target="_blank"&gt;http://www.w3schools.com/js/js_cookies.asp&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good luck,&lt;/P&gt;&lt;P&gt;Neil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2012 19:06:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Support-For-Cookies-in-MQX-3-8/m-p/167120#M1679</guid>
      <dc:creator>dspNeil</dc:creator>
      <dc:date>2012-06-05T19:06:34Z</dc:date>
    </item>
  </channel>
</rss>

