Permalink
Browse files

Updated documentation & example

  • Loading branch information...
1 parent 8886a22 commit dd6736cfa7078241354f608fb3027c4723444bf4 Dave committed Feb 19, 2011
Showing with 5 additions and 5 deletions.
  1. +3 −3 README.rdoc
  2. +2 −2 example/app.js
View
@@ -7,7 +7,7 @@ http://github.com/extjs/Connect
== Usage:
var Connect = require('connect');
- var MemoryStore = require('connect/middleware/session/memory');
+ var MemoryStore = require('connect').session.MemoryStore;
var RPX = require( 'connect-rpx' );
// Setup RPX
@@ -44,7 +44,7 @@ http://github.com/extjs/Connect
var Server = module.exports = Connect.createServer(
Connect.logger(),
Connect.cookieDecoder(),
- Connect.session({ store: new MemoryStore({ reapInterval: minute, maxAge: minute * 5 }) }),
+ Connect.session({ secret: 'your_secrets_safe_with_me', store: new MemoryStore({ reapInterval: minute, maxAge: minute * 5 }) }),
RPX.handler(),
Connect.staticProvider( root ) // this is not strictly required, );
@@ -70,4 +70,4 @@ http://github.com/extjs/Connect
== THANKS
-This code was based on the rack-rpx module http://github.com/pedrodelgallego/rack-rpx
+This code was based on the rack-rpx module http://github.com/pedrodelgallego/rack-rpx
View
@@ -1,5 +1,5 @@
var Connect = require('connect');
-var MemoryStore = require('connect/middleware/session/memory');
+var MemoryStore = require('connect').session.MemoryStore;
var RPX = require( 'connect-rpx' );
// Setup RPX
@@ -40,7 +40,7 @@ var Server = module.exports = Connect.createServer(
// Body decoder used to be required, but is no longer. If you want to use it, you can install it here, or leave it out
// Connect.bodyDecoder(),
Connect.cookieDecoder(),
- Connect.session({ store: new MemoryStore({ reapInterval: minute, maxAge: minute * 5 }) }),
+ Connect.session({ secret: 'your_secrets_safe_with_me', store: new MemoryStore({ reapInterval: minute, maxAge: minute * 5 }) }),
RPX.handler(),
Connect.staticProvider( root ) // this is not strictly required,
);

0 comments on commit dd6736c

Please sign in to comment.