Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

edit

  • Loading branch information...
commit 3eff3342adf6969a781f22811efda937359b0b46 1 parent 2482b8d
@anandology anandology authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  cookbook/sessions.md
View
2  cookbook/sessions.md
@@ -49,5 +49,5 @@ You can use `DBStore` instead of `DiskStore` if you prefer to store sessions in
And you need to pass `db` object and session table name to the constructor of `DBStore`.
db = web.database(dbn='postgres', db='mydatabase', user='myname', pw='')
- store = DBStore(db, 'sessions')
+ store = web.session.DBStore(db, 'sessions')
session = web.session.Session(app, store, initializer={'count': 0})
Please sign in to comment.
Something went wrong with that request. Please try again.