This can be useful if:
1. You can't rely on a persistent file system (e.g. Heroku)
2. Your application is open source (e.g. you can't commit the key)
By keeping a consistent value in the environment variable, your users will
have consistent sessions without relying on the file system.
Usage:
makeSessionBackend _ = fmap Just $ envClientSessionBackend 120 "SESSION_KEY"
|
||
|---|---|---|
| .. | ||
| attic | ||
| bench | ||
| static | ||
| test | ||
| Yesod | ||
| .gitignore | ||
| bench.sh | ||
| changelog.md | ||
| helloworld.hs | ||
| LICENSE | ||
| README.md | ||
| Setup.lhs | ||
| test.hs | ||
| yesod-core.cabal | ||
yesod-core
This is the main package for Yesod, providing all core functionality on which other packages can be built. It provides dispatch, handler functions, widgets, etc.
Yesod is well documented on its website.