Tornado Documentation
› http://www.v2ex.com/tornado/
Tornado on GitHub
› https://github.com/facebook/tornado/
Tornado Gists
› http://tornadogists.org/
Livid
404.92D
549.4D
V2EX  ›  Tornado

生成 Tornado 所需的 cookie_secret 的办法

  •  
  •   Livid ·
    PRO
    · May 6, 2011 · 14789 views
    This topic created in 5667 days ago, the information mentioned may be changed or developed.
    import base64
    import uuid

    base64.b64encode(uuid.uuid4().bytes + uuid.uuid4().bytes)
    2 replies  •  1970-01-01 08:00:00 +08:00
    meecle
    meecle
    May 6, 2011
    1
    tornado 下的session 有没有简单快捷的 发法解决没?
    iwinux
    iwinux
    May 6, 2011
    2
    Ruby,嘿嘿。

    ('A'..'z').to_a.shuffle[0..40].join
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2991 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 05:25 · PVG 13:25 · LAX 21:25 · JFK 00:25
    ♥ Do have faith in what you're doing.