Skip to content

session.touch() doesn't seem to do store.touch() #442

Closed
@ile

Description

@ile

Hi,

Why is it that this function: https://github.com/expressjs/session/blob/master/session/session.js#L47-L49

... doesn't look more like this:

Session.prototype.touch = function(){
  this.resetMaxAge();

  if (typeof this.req.sessionStore.touch === 'function') {
    this.req.sessionStore.touch(this.id, this);
  }

  return this;
};

i.e. touch also the session in store?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions