문제

For example, I log in to my server. I want to store things like a username. Would the best way of going about it be:

self.set_secure_cookie('username', "foobar70")
도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top