well kind of ... the users should get their "old" customization back once they are logged in this is the easy part, I just have to load the pickled session from the db (I guess), but my question is how to store it properly if I store the session information on logout is not enough I would like to store it as soon as data is written to the session object, but I am not sure how to overwrite the session object for that I see a _try_store_in_db() and _try_store_on_disk() in the session object, are these function called when the session variables change?
I guess this would be a nice addition to the session object in general e.g. session.auth_presist everything that is written to the auth_presist object of the session will be stored in the auth_user table along with the user information and whenever the user logges in the auth_presist object is recovered On Apr 19, 4:31 pm, Thadeus Burgess <[email protected]> wrote: > Or have a "settings" table that is linked by user id? They only get > the site customizations if they are logged in? > > -- > Thadeus > > > > On Mon, Apr 19, 2010 at 8:01 AM, selecta <[email protected]> wrote: > > that should work > > > On Apr 19, 1:06 pm, Jason Brower <[email protected]> wrote: > >> On the same lines, I wonder if someone could simply pickle everything is > >> session and save it in teh database under there user id. > >> BR, > >> Jason > > >> On Mon, 2010-04-19 at 03:18 -0700, selecta wrote: > >> > I wonder what is the best way to store session of auth users > > >> > What I want is to retrieve an old session of a user when he loges in > >> > again (restoring all his customizations etc) > >> > To achieve this I could > >> > A) store the session in a table once the user loges out, but then I > >> > would loose changes if the session just expires because the user never > >> > logged out (right?) > >> > B) I could modify the session object to save itself in the database as > >> > soon as it is changed > > >> > B) sounds nicer, but how to do that, maybe somebody already did that? > >> > some help would be nice > > >> -- > >> Subscription settings:http://groups.google.com/group/web2py/subscribe?hl=en

