title: How long will a variable be stored in a deployed node/express application? and will it be available to every client?
body: <p>I have a let variable that is declared at the top of a node/express file and assigned a value through a post request, this variable is then accessed by a different get request to return a value to the client. My question is: how long will this variable be stored if not overwritten &amp; will that variable's value be available to a request from another user?</p>
  <p>i.e</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>let variable;
  
  router.post("/", async (req, res) =&gt; {
        // returns an object
      },
      function (err) {
        if (err) {
          console.log(err);
          res.status(500).send({ success: false, reason: "session didnt work" });
        } else {
          variable = object.variable
          res.json({ variable.id: variable.id });
          // res.status(200).send({ success: true });
        }
      }
    );
  });</code></pre>
  </div>
  </div>
  </p>