推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
wang9571
V2EX  ›  Python

Flask 如何在关闭浏览器后保存登录状态

  •  
  •   wang9571 · Jun 22, 2017 · 2814 views
    This topic created in 3334 days ago, the information mentioned may be changed or developed.

    按照《 Flask Web Development 》的内容,使用 Flask-Login,登录时勾选 remember_me 的情况下,重新打开浏览器后,只有在第一次打开"/"路径的时候登录状态还在。随便点击一个链接,登录状态就不见了。

    本来以为是自己代码写的有问题,直接 clone 书里提到的仓库 https://github.com/miguelgrinberg/flasky 在我电脑里也是不成功。

    1 replies    2017-06-22 14:24:17 +08:00
    xzl380
        1
    xzl380  
       Jun 22, 2017   ❤️ 1
    会话 cookie 和持久性 cookie
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2717 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 12:44 · PVG 20:44 · LAX 05:44 · JFK 08:44
    ♥ Do have faith in what you're doing.