0.0
No commit activity in last 3 years
No release in over 3 years
Sequel-based session middleware for Rack 2.0+
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 5.1
>= 1.3

Runtime

>= 2.0
>= 4.0
 Project Readme

sequel-sessions

Sequel-based session middleware for Rack 2.0 and above.

https://github.com/wardrop/sequel-sessions

Installation

gem install sequel-sessions

Usage

Simplest example using in-memory SQLite database:

use Rack::Session::Sequel, Sequel.sqlite

A more fleshed out example with multiple options:

db_connection = Sequel.connect(adapter: 'mysql', host: 'localhost', username: 'root', database: 'blog')
use Rack::Session::Sequel, db: db_connection, table_name: :user_sessions, :expire_after => 3600

License

Copyright © 2017 Tom Wardrop. Distributed under the MIT license.