Permalink
Browse files

Fix formatting on expired session section

  • Loading branch information...
1 parent 64ccda5 commit ecd38ce9509420e6334abbd1e300add9b31c0835 @aroman aroman committed Dec 17, 2012
Showing with 13 additions and 13 deletions.
  1. +13 −13 Readme.md
View
@@ -55,19 +55,19 @@ With connect:
## Removing expired sessions
- connect-mongo uses MongoDB's TTL collection feature (2.2+) to
- have mongod automatically remove expired sessions. (mongod runs this
- check every minute.)
-
- **Note:** By connect/express's default, session cookies are set to
- expire when the user closes their browser (maxAge: null). In accordance
- with standard industry practices, connect-mongo will set these sessions
- to expire two weeks from their last 'set'. You can override this
- behavior by manually setting the maxAge for your cookies -- just keep in
- mind that any value less than 60 seconds is pointless, as mongod will
- only delete expired documents in a TTL collection every minute.
-
- For more information, consult connect's [session documentation](http://www.senchalabs.org/connect/session.html)
+ connect-mongo uses MongoDB's TTL collection feature (2.2+) to
+ have mongod automatically remove expired sessions. (mongod runs this
+ check every minute.)
+
+ **Note:** By connect/express's default, session cookies are set to
+ expire when the user closes their browser (maxAge: null). In accordance
+ with standard industry practices, connect-mongo will set these sessions
+ to expire two weeks from their last 'set'. You can override this
+ behavior by manually setting the maxAge for your cookies -- just keep in
+ mind that any value less than 60 seconds is pointless, as mongod will
+ only delete expired documents in a TTL collection every minute.
+
+ For more information, consult connect's [session documentation](http://www.senchalabs.org/connect/session.html)
## Tests

0 comments on commit ecd38ce

Please sign in to comment.