objects stored in session saved

1 view
Skip to first unread message

Allen Romero

unread,
May 25, 2010, 10:36:03 PM5/25/10
to appengine-utilities
I noticed that if I create an object then place it in the session, the
object is automatically saved in the database also even though I
didn't explicitly save it in the database.

Is this the intended functionality? What do I do if I want the object
to just be temporary?

Thx.

Allen

Joe Bowman

unread,
May 27, 2010, 10:08:39 AM5/27/10
to appengine-utilities
I'm not sure what you mean by object? You mean a model entity?

Allen Romero

unread,
Jun 3, 2010, 1:03:47 AM6/3/10
to appengine-utilities
yes. apologies for the confusion. model entities is what I meant.

Joe Bowman

unread,
Jun 3, 2010, 9:11:45 AM6/3/10
to appengine-utilities
They're put in order to get the key.

Session is used to persist data across requests, if you want the data
to only exist during the current request, I'd instantiate it outside
of session.
Reply all
Reply to author
Forward
0 new messages