No commit activity in last 3 years
No release in over 3 years
Automatically sets the rack session domain to the current request domain
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
~> 2.12

Runtime

>= 0.0.11
 Project Readme

rack-auto-session-domain

This rack middleware automatically sets the rack session domain to the current domain.

eg. env["rack.session.options"][:domain] = 'domain1.com'

This is handy if you want your rack app to serve multiple domains and have access to the session data across all subdomains. For example, let's say your app serves the following domains:

and..

The session cookies will now automatically be accessible across all subdomains on *.domain1.com and *.domain2.co.uk respectively.

Source

https://github.com/GavinJoyce/rack-auto-session-domain