Permalink
Browse files

turn off debugging for session example

  • Loading branch information...
1 parent bfc732d commit a7173e5686bf9eb3b028b6e9cfdcc0e6fdedb00e @brentp brentp committed with anandology Nov 23, 2008
Showing with 2 additions and 1 deletion.
  1. +2 −1 cookbook/sessions.md
View
@@ -14,6 +14,7 @@ How to use sessions in web.py.
The `web.session` module provides session support. Here is a simple application to count using sessions.
import web
+ web.config.debug = False
urls = (
"/count", "count",
"/reset", "reset"
@@ -34,7 +35,7 @@ The `web.session` module provides session support. Here is a simple application
if __name__ == "__main__":
app.run()
-The session object is loaded with the session data before handling the request and saves the session data after handling the request, if modified.
+The session object is loaded with the session data before handling the request and saves the session data after handling the request, if modified. Note in the current (11-22-2008) version of web.py, one must turn off debug to use the development server with sessions.
The optional `initializer` argument to Session specifies the initial session.

0 comments on commit a7173e5

Please sign in to comment.