To use sessions in TurboGears, you must first enable sessions in your config files (dev.cfg, prod.cfg) by adding this line to the global section:
sessionFilter.on = True
To demonstrate sessions, we'll build a simple counter:
Refreshing the page should cause the counter to increase.