Node.js connect compatible signed cookie session store. Use this gem if you want to share cookie sessions between your rack / rails app with connect / express framework from Node.js
Add this line to your application's Gemfile:
gem 'rack-session-cookie_store'
And then execute:
$ bundle
Or install it yourself as:
$ gem install rack-session-cookie_store
# In Rack
use Rack::Session::CookieStore, secret: 'your secret',
domain: 'your.domain.com',
key: 'your.session.key'
# In Node
connect = require 'connect'
app = connect()
app.use connect.cookieParser()
app.use connect.cookieSession(
secret: 'your secret'
key: 'your.session.key'
cookie:
domain: 'your.domain.com'
)
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request