Skip to content

Sequel-based session middleware for Rack 2.0 and above

License

Notifications You must be signed in to change notification settings

Wardrop/sequel-sessions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Sequel-based session middleware for Rack 2.0 and above

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages