what kind of data ? what kind of application ?
i've done things like this under pyramid:
- store long-term 'cached' data in the database , keyed to a userid in the session. refresh that into the session if the user is logged in, but that key is not present. ( also save it whenever the values change )
if 'user.longcached' not in session:
session['user.longcached'] = lib.api_internal.get_user_longcache( request , session['
user.id'] )
- store random crap in a cookie
a- use a series of plaintext cookies for random identifiers
the big trick i learned was to get this stuff into the session as soon as possible. just read the cookies once, migrate to session, and work from there. it really simplifies debugging.