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

生成 Tornado 所需的 cookie_secret 的办法

  •  
  •   Livid ·
    PRO
    · May 6, 2011 · 14587 views
    This topic created in 5564 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
        1
    meecle  
       May 6, 2011
    tornado 下的session 有没有简单快捷的 发法解决没?
    iwinux
        2
    iwinux  
       May 6, 2011
    Ruby,嘿嘿。

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