0.0.2 • Published 12 years ago

tako-session-token v0.0.2

Weekly downloads
10
License
-
Repository
github
Last release
12 years ago

tako-session-token

Just a session token middleware for Tako. Works great with tako-cookies.

Usage

// various tako stuff...

var SessionToken = require("tako-session-token")
app.middle(new SessionToken("my-happy-app"))

// later...
app.route("/foo", function (req, res) {
  console.log(req.session) // some random string.

  // the idea is that then that random string will
  // be a key in some sort of persistent session
  // store such as redis, or something.
})