librelist archives

« back to archive

Session and store of variables

Session and store of variables

Dimitris Leventeas
2012-11-02 @ 16:29
Hello everyone,

A session variable stores an object. This object was calling a method which
was updating the object in place. If I changed nothing else in the session
on the local scope, then the updated values would not be kept in memory. On
the other hand, if I did something like
    session['mplampla'] = 'hohoho'

It would work fine (=update the values as intended).

Is this a bug or a feature? In the latter case, I guess it should be
mentioned in the docs.

Kind regards,