4

たとえば、サーバーにログインします。ユーザー名のようなものを保存したい。それについての最善の方法は次のとおりです。

self.set_secure_cookie('username', "foobar70")
4

1 に答える 1

2

Just my oppinion. Secure cookies usually does good job to store data secure and works OK, if you need to store small data chunks, but passing lots of data back and forward with bigger cookies is annoying :) So the answer depends of your data volumes.

I usually use this implementation of sessions in Tornado, based on redis https://gist.github.com/1735032

于 2013-01-09T19:08:45.773 に答える