How to get current session with only the SID?
问题 How can I retrieve a session using only its session identifier (SID)? I'm using gae-sessions. Update for response @David Underhill: I've done what you suggested, but in debug mode I got this: Session: SID=None {} | but it has db_key populated with a string. Here is my code: upload.py SID = self.request.get("SID") if not SID: return False from app.models.user import User user = User.get_current_user(SID) user.py def get_current_user(SID = None): if SID: session = Session(sid=SID) else: session