Git Product home page Git Product logo

express-session-mongodb's People

Contributors

ciaranj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

express-session-mongodb's Issues

Id cannot be longer than 12 bytes

I get the this error when I'm trying to use this ?

Id cannot be longer than 12 bytes

I guess it's because express's session id's are 28 bytes long when in hex ?

Unable to install express-session-mongodb via npm

Hi,

I tried to install the tarball both over http and via file itself. I'm gonna post this on npm's issues next.

I'm a node.js and npm noob so far so go easy. I wasn't sure if the problem was in the tar or npm.

Thanks!
Paul

$ npm install http://nodeload.github.com/ciaranj/express-session-mongodb/tarball/0.1.0
and,
$ npm install ./ciaranj-express-session-mongodb-0.1.0-0-gd7842d4.tar.gz

result in,

npm info it worked if it ends with ok
npm info using [email protected]
npm ERR! Error installing ./ciaranj-express-session-mongodb-0.1.0-0-gd7842d4.tar.gz
npm ERR! Error: ENOENT, No such file or directory '/usr/local/lib/node/.npm/.tmp/1287102780656-0.5914555215276778/package.json'
npm ERR! at node.js:768:9
npm ERR! npm install
npm ERR! npm install
npm ERR! npm install
npm ERR! npm install
npm ERR! npm install @
npm ERR! npm install @
npm ERR! npm install @
npm ERR!
npm ERR! Can specify one or more: npm install ./foo.tgz bar@stable /some/folder
npm ERR! Installs '.' if no argument supplied
npm ERR! try running: 'npm help install'
npm ERR! Report this entire log at http://github.com/isaacs/npm/issues
npm ERR! or email it to [email protected]
npm info rm fail /usr/local/lib/node/.npm/.tmp/1287102780656-0.5914555215276778/lib/express/plugins/session.mongodb.js
npm info rm fail ENOENT, No such file or directory '/usr/local/lib/node/.npm/.tmp/1287102780656-0.5914555215276778/lib/express/plugins/session.mongodb.js'
npm info rm fail /usr/local/lib/node/.npm/.tmp/1287102780656-0.5914555215276778/lib/express/plugins
npm info rm fail ENOENT, No such file or directory '/usr/local/lib/node/.npm/.tmp/1287102780656-0.5914555215276778/lib/express/plugins/session.mongodb.js'
npm info rm fail /usr/local/lib/node/.npm/.tmp/1287102780656-0.5914555215276778/lib/express
npm info rm fail ENOENT, No such file or directory '/usr/local/lib/node/.npm/.tmp/1287102780656-0.5914555215276778/lib/express/plugins/session.mongodb.js'
npm info rm fail /usr/local/lib/node/.npm/.tmp/1287102780656-0.5914555215276778/lib
npm info rm fail ENOENT, No such file or directory '/usr/local/lib/node/.npm/.tmp/1287102780656-0.5914555215276778/lib/express/plugins/session.mongodb.js'
npm info rm fail /usr/local/lib/node/.npm/.tmp/1287102780656-0.5914555215276778
npm info rm fail ENOENT, No such file or directory '/usr/local/lib/node/.npm/.tmp/1287102780656-0.5914555215276778/lib/express/plugins/session.mongodb.js'
npm info rm fail /usr/local/lib/node/.npm/.tmp
npm info rm fail ENOENT, No such file or directory '/usr/local/lib/node/.npm/.tmp/1287102780656-0.5914555215276778/lib/express/plugins/session.mongodb.js'

npm info ! The following files and folders could not be removed
npm info ! You should remove them manually.

sudo rm -rf "/usr/local/lib/node/.npm/.tmp/1287102780656-0.5914555215276778/lib/express/plugins/session.mongodb.js" "/usr/local/lib/node/.npm/.tmp/1287102780656-0.5914555215276778/lib/express/plugins" "/usr/local/lib/node/.npm/.tmp/1287102780656-0.5914555215276778/lib/express" "/usr/local/lib/node/.npm/.tmp/1287102780656-0.5914555215276778/lib" "/usr/local/lib/node/.npm/.tmp/1287102780656-0.5914555215276778" "/usr/local/lib/node/.npm/.tmp"
npm not ok

Code Question

Hi,

I didn't know where to put this (Github confuses me) so I have put it here. In your code you have:

createSessionFromDocument: function(doc) {
var session= new Session.Base(doc.id.toHexString());
//TODO: do a proper deep merge.
for(var prop in doc) {
var val= doc[prop]
// Fixup the 64bit+ numbers
if( val["low
"] && val["high
"] ) session[prop]=val.toNumber()
else session[prop]=val;
}
return session;
},

But I'm not sure what the heigh and low values actually do and are there for and what the Base function does. I was hoping you could explain what they do. Thanks :)

new express

Hi, I have recently changed my app to use the new express version, however as I was using this as a plugin. As it is using connect middleware now I am not sure how the file needs to be adjusted to work on the new express. Can this be adjusted to accommodate the new code easily?

kill sessions

self.session["something"] = "thething";

how do I kill that session later?
I tried
self.session.destroy;
self.session.destroy(self.session["sid"]);

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.