Permalink
Browse files

Doc session string

  • Loading branch information...
1 parent 5e2f0d3 commit e877801db665bbe8afbc33559a92267f37496b8a @zzdhidden committed Dec 19, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/session.js
View
@@ -94,6 +94,7 @@ SessionStore.prototype.get = function(sid, fn) {
.done( function(sess) {
if (sess) {
if ( !sess.expires || new Date < sess.expires ) {
+ //Make the session is string... we can't update undefined attr in capped collection...
fn && fn( null, JSON.parse( sess.session ) );
} else {
self.destroy( sid, fn );

0 comments on commit e877801

Please sign in to comment.