Artifact 83a6e5ca77f3def387a05fde9a6c73c1337bdac0:
- File applications/examples/controllers/session_examples.py — part of check-in [eba4a35a21] at 2011-08-08 04:53:38 on branch develop — Added web2py 1.98.2 (user: spiffy, size: 211) [annotate] [blame] [check-ins using]
def counter(): """ every time you reload, it increases the session.counter """ if not session.counter: session.counter = 0 session.counter += 1 return dict(counter=session.counter)