Skip to content

I really like your module. I think it scales better than storing sessions in the db (at least for my app). Do you have any plans to implement req.session.regenerate() and req.session.save() (to make passport compatible again)? #182

Open

Description

@slynchDev

Thanks
Sean

Activity

  1. si458 commented on Sep 27, 2025

    @si458

    // Patch for passport 0.6.0 - jaredhanson/passport#904 (comment)

    app.use(cookieSession({}))
    obj.app.use(function (request, response, next) {
      if (request.session && !request.session.regenerate) {
        request.session.regenerate = function (cb) { cb(); }
      }
      if (request.session && !request.session.save) {
        request.session.save = function (cb) { cb(); }
      }
      next();
    });
    
  2. bvds commented on Oct 8, 2025

    @bvds

    Same question here!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions