Skip to content

cookie is sent by hono_session on each request #29

@georgernstgraf

Description

@georgernstgraf

Hi,

I'd say I have a quite classical setup and everything works. On one endpoints I store a few Kilobytes of data onto the session, which works fine, besides the cookie gets always sent fresh and new by the backend. I was looking for something like in express where this can be tuned:

app.use(session({
  secret: 'your-secret-key',
  resave: false,
  saveUninitialized: false,
  cookie: { secure: true, httpOnly: true }
}));

Am I missing something or is this not implemented yet? The only option I see for me is just use the sessionMiddleware on selected endpoints. But I really want to avoid this.

Thank you so much!

George

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions