title: Using variables with session (express-session) - loggedin & username works, but not the others
body: <p>Simple login authorization code:</p>
  
  <pre><code>app.post('/auth', function(request, response) { 
      var username = request.body.username;
      var password = request.body.password;
      if (username &amp;&amp; password) {
          connection.query('SELECT * FROM users WHERE username = ? AND password = ?', [username, password], function(error, results, fields) {
              if (results.length &gt; 0) {
                  request.session.loggedin = true;
                  request.session.username = username;
                  request.session.bsa = 'randomstringasdfasdf';
                  response.redirect('/account');
              } else {
                  response.send('Incorrect Username and/or Password!');
              }           
          });
      } else {
          response.send('Please enter Username and Password!');
          response.end();
      }
  });
  </code></pre>
  
  <p>The problem is with request.session.bsa (without it, no error, and with it, there's an error "ReferenceError: request is not defined"). I want it to save some string which will be used in the future. However:</p>
  
  <p>-request.session.loggedin works</p>
  
  <p>-request.session.username works</p>
  
  <p>But request.session.bsa doesn't work.</p>
  
  <p>How can I save a string in the session which is going to be used in the future, just like the use of username?</p>