How to use the lastModified function from express-session

Find comprehensive JavaScript express-session.lastModified code examples handpicked from public code repositorys.

72
73
74
75
76
77
78
79
80
81
  if (typeof session.session === 'string') {
    session.session = JSON.parse(session.session);
  }
  const s = session.session;
  if (this.options.touchAfter > 0 && session.lastModified) {
    s.lastModified = session.lastModified;
  }
  this.emit('get', sid);
  return s;
}
fork icon23
star icon58
watch icon9

+ 5 other calls in file