Session: Allow async genid functions

Created on 9 Dec 2014  路  9Comments  路  Source: expressjs/session

The function I pass to genid to create the session id is the result of an async call to our backend - it would be nice if genid could work with async functions, as I can't seem to find a way around this!

enhancement

Most helpful comment

Someone should submit a pull request.

All 9 comments

Yes, indeed. It's similar to https://github.com/expressjs/session/issues/52 but more concise on what I want to do. It would not be easy to make this a backward-compatible change, so it may need to wait to the next major.

Also, just remember, your session IDs should never be something like an auto-incrementing integer :)

+1

+1

+1 ^ 10

@armenr Your comment isn't super helpful - are you in favour of the proposed change? Or unimpressed with the folks adding thier expression of support?

@benheymink - I was being a baby. :) I'm definitely in favor of this. Thanks for all the work you guys do to build and maintain the tools we use and love. I was just being bitchy.

@dougwilson Hey Doug, if I may be so frank, is this still on your radar? It's been 5 years, so I thought I'd just ask ;-)

Someone should submit a pull request.

@dougwilson You mean, fix the merge conflicts in PR 121, or is that one no longer valid?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gk0us picture gk0us  路  18Comments

aheyer picture aheyer  路  15Comments

fibo picture fibo  路  22Comments

azfar picture azfar  路  14Comments

Matthew-Christopher picture Matthew-Christopher  路  27Comments