Skip to content
New issue

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

感觉F2E的session完全没有被用到 #13

Open
zhu327 opened this issue Jan 26, 2015 · 1 comment
Open

感觉F2E的session完全没有被用到 #13

zhu327 opened this issue Jan 26, 2015 · 1 comment

Comments

@zhu327
Copy link

zhu327 commented Jan 26, 2015

    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中使用了

@zhaoyongjie
Copy link

lib.session封装的memcache, application.py挂载。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants