Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Doc session string

  • Loading branch information...
commit e877801db665bbe8afbc33559a92267f37496b8a 1 parent 5e2f0d3
@zzdhidden authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/session.js
View
1  lib/session.js
@@ -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 );
Please sign in to comment.
Something went wrong with that request. Please try again.