askrobots / dbbasic-examples
Public
Example DBBasic apps (an API, a blog and a microblog) and a template for new DBBasic modules.
danq9
Add official module template for creating DBBasic packages
17cf88a
1 year, 1 month ago
History
logout.py · 206 bytes · 6 lines
| 1 | from dbbasic_web.responses import redirect |
| 2 | |
| 3 | def handle(request): |
| 4 | status, headers, body = redirect('/') |
| 5 | headers.append(('set-cookie', 'session=; Max-Age=0; Path=/')) |
| 6 | return status, headers, body |