title: How can i get nodejs session variables to mysql trigger on update
body: <p>Good Day!</p>
  <p>I need to pass nodejs passport session variable (username) to mysql trigger but i don´t know how</p>
  <p>here the trigger:</p>
  <pre><code>DELIMITER $$
  
  CREATE TRIGGER after_objetos_update
  AFTER UPDATE
  ON objetos FOR EACH ROW
  BEGIN
      
          INSERT INTO registro
          VALUES(null,old.id_emp,sysdate(),/*here put user name*/,old.ambito, old.objeto, old.json,new.json);
      
  END$$
  
  DELIMITER ;
  </code></pre>
  <p>here the passport login:</p>
  <pre><code>router.post('/auth/signin',passport.authenticate('local',{
      successRedirect : '/',
      failureRedirect :'/auth/signin',
      failureFlash : true
  }));
  
  </code></pre>
  <p>please help</p>