node.js - Forcing node to not create a session in connect-mongo/connect-mongostore -


we running on amazon, using node express, , connect-mongostore manage sessions. load balancer sends test servers every 15 seconds make sure app alive. have coded api call check, tests if both node , mongo working. however, creates session, each call, it's not web browser, new session record gets built. have 80,000 records in our session database, expire every 4 weeks. wondering if there way prevent happening, without having hack either express or connect-mongostore.

at 1 time ignore specific routes connect's session management connect.session.ignore.push('/individual/path'), has been removed.

why not put 1 public route app.getapp.use('/lbchck', function(req,res){ res.send(200);}) load balancer before app.use(express.session(...));?


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -