We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
def get_current_user(self): user_id = self.get_secure_cookie("user") if not user_id: return None return self.user_model.get_user_by_uid(int(user_id))
BaseHandler直接就使用cookie获取id,然后从数据库中获取user的信息,用session的话这里不是应该从session中获取user吗? 搜索了下memcache,只在lib.session中使用了
BaseHandler
The text was updated successfully, but these errors were encountered:
lib.session封装的memcache, application.py挂载。
Sorry, something went wrong.
No branches or pull requests
BaseHandler
直接就使用cookie获取id,然后从数据库中获取user的信息,用session的话这里不是应该从session中获取user吗?搜索了下memcache,只在lib.session中使用了
The text was updated successfully, but these errors were encountered: