Some of the information here may be outdated, please check the book instead

web2py supports both session and memcache. To enable sessions simply do

from gluon.contrib.gql import *

To enable memcache

from gluon.contrib.gae_memcache import MemcacheClient

Then every program/example that uses sessions or cache will work on gae without additional tweaks. For example:

def index():
     import time
     if not session.c: session.c=0
     return dict(counter=session.c,
© 2008-2010 by Massimo Di Pierro - All rights reserved - Powered by web2py - design derived from a theme by the earlybird
The content of this book is released under the Artistic License 2.0 - Modified content cannot be reproduced.