1
session = get_current_session()
a1 = session.has_key('account.logged') # is true
session2 = Session(sid=session.sid)
a2 = session2.has_key('account.logged') # is false
爲什麼a2不等於a1?gae-sessions:通過ID檢索會話的語義
解決方案:它必須保存到數據存儲: How to get current session with only the SID?
「默認情況下,gae-sessions僅將會話存儲在安全的客戶端cookie中。」我懷疑,但它有多安全?我不信任客戶。 – 2010-11-10 22:43:13