Skip to content

Commit

Permalink
Usage for SessionStore
Browse files Browse the repository at this point in the history
  • Loading branch information
arronzhang committed Dec 16, 2011
1 parent 9b52bb4 commit 5e2f0d3
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions lib/session.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
/**
* connect session store
*
* Use in express or connect project
*
* Examples:
*
* Use in normal collection
*
* app.use(express.session({
* store: new mongoq.SessionStore( mongoq("mongodb://localhost").collection("sessions") )
* }));
*
* Use in capped collection with max length 4096
*
* app.use(express.session({
* store: new mongoq.SessionStore( mongoq("mongodb://localhost").collection("sessions", {
* capped: true,
* max: 4096,
* size: 4096 * 8192
* }) )
* }));
*
*/

/**
Expand Down

0 comments on commit 5e2f0d3

Please sign in to comment.