Permalink
Browse files

edit

  • Loading branch information...
1 parent 2482b8d commit 3eff3342adf6969a781f22811efda937359b0b46 @anandology anandology committed with anandology Jul 24, 2008
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})

0 comments on commit 3eff334

Please sign in to comment.