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")
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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