-
-
Notifications
You must be signed in to change notification settings - Fork 981
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
why don't use uuid module instead of uid2? #49
Comments
This patch seems work fine:
|
Why does this matter? |
I don't think it does. Plus there is no RFC for how to store session IDs in cookies. |
In debian we have node-uuid, it's used by other 880 modules (uid2 by only 45) according with npm. |
There are 880 modules that generate sessions with node-uuid? I think those numbers are not actually useful here. If we created a module that generated super awesome secure and fully random values and it was only used by this module, then your numbers argument would say it is inferior simply because it's only used by 1 module. We can replace it. Can you provide us an actual reason why to replace it? So far you have not really provided a reason, and without a good maintainer for this module, we don't want to really just willy-nilly change stuff. |
@dougwilson But there is an RFC on uid's http://www.ietf.org/rfc/rfc4122.txt
|
@Fishrock123 the original reasoning on using UUID was it is "and more RFC compliance", but how it is more RFC compliance than using uid? I know there is a RFC for what a UUID is, but that doesn't related to using it for session IDs, which is my point. |
Going to just close. Reopen if there's a valid reason unless someone wants to maintain this |
With the next version of the library, feel free to do this yourself with the app.use(session({
genid: function(){ return uuid.v4() }
})) |
Hi,
It would be nice use node-uuid module instead of uid2.
It's more robust (I think) and more RFC compliance...
Homepage: https://github.com/broofa/node-uuid
The text was updated successfully, but these errors were encountered: