I encountered a strange problem: The gaeutilities' session worked on the GAE SDK, but not on the actual Google App Engine platform. The followings are session creation and existence checking using Python, respectively.
Session creation:
self.session = sessions.Session()
self.session.delete_item('account')
self.session.delete_item('accountKey')
...
query = db.Query(model.Member)
query = query.filter('account =', account) # 'account' is the user account
results = query.fetch(limit=1)
if results: # Account exists
member = results[0]
self.session['account'] = account
self.session['accountKey'] = member.key()
...
Session existence checking:
self.session = sessions.Session()
if 'accountKey' in self.session: # Session exists
account = self.session['account'] # Could this be the problem?
...
The above program runs OK on the GAE SDK. But I uploaded the program to Google App Engine, and it didn't work. What might be the problem?