Added an example on how to share a cookie through a subdomain.
This commit is contained in:
parent
96c755ed27
commit
57536b6524
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue