title: run two node application at same time with different port
body: <p>I have two node application  use port 3000 and 5000.When i run it on localhost it run without any error.but when run two at same time with two different terminal last one remain executed and first one destroy session and redirect to login page when click on any page.After that when click on last one any page they also lost session and redirect to login.I want two application run at time.</p>
  
  <p>This is session and port of admin app</p>
  
  <pre><code> admin.use(session({
      secret : 'ssshhhhh',
      proxy : true,
      resave : true,
      saveUninitialized : true
  }));
  
  
  admin.set('port', process.env.PORT || 5000);
  var debug = require('debug')('Admin App');
  var server = admin.listen(admin.get('port'), function() {
      debug('Express server listening on port ' + server.address().port);
  });
  </code></pre>
  
  <p>and This  is for user app</p>
  
  <pre><code>app.use(session({
      secret : 'ssshhhhh',
      proxy : true,
      resave : true,
      saveUninitialized : true
  }));
  
  
  app.set('port', process.env.PORT || 3000);
  var debug = require('debug')('User App');
  var server = app.listen(app.get('port'), function() {
      debug('Express server listening on port ' + server.address().port);
  });
  </code></pre>