Added an example on how to share a cookie through a subdomain.

This commit is contained in:
Darío Javier Cravero 2013-06-25 13:10:03 +01:00
parent 96c755ed27
commit 57536b6524
1 changed files with 7 additions and 0 deletions

View File

@ -1299,6 +1299,13 @@ the `sessions` setting:
set :sessions, :domain => 'foo.com'
```
To share your session across other apps on subdomains of foo.com, prefix the
domain with a *.* like this instead:
``` ruby
set :sessions, :domain => '.foo.com'
```
### Halting
To immediately stop a request within a filter or route use: