Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7020943
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:23:05+00:00 2026-05-27T23:23:05+00:00

I just started learning about webservers, tornado in particular. I want to write a

  • 0

I just started learning about webservers, tornado in particular.

I want to write a simple webpage with a login function.
As described in the Tornado Documentation, I’m creating a secure cookie after the user was successfully loged-in:

self.set_secure_cookie("user", self.get_argument("user"))

But how do I provide the user with a way to log-out?
As mentioned before, I’m not familiar with web servers, but as I’m checking this cookie when the user attempts to enter the Main-Page, I guess I’d just have to remove it after the user pressed “logout”?

Unfortunately, I could’nt find anything about this in the tornado documentatoin, nor on SO.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T23:23:06+00:00Added an answer on May 27, 2026 at 11:23 pm

    You could reset the cookie to an empty string via

    self.clear_cookie("user")
    

    Which would make the call to get_current_user return False. Take a look at the blog demo for an example (using OAuth, but still relevant).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi I have just started learning about xsd as I want to use it
I've just started learning about parsing, and I wrote this simple parser in Haskell
I'm using $_get for a simple page redirection. I've only just started learning about
I'm just getting started with learning about Unit testing (and TDD in general). My
I just started learning about servers, and I am messing around with Google's App
I've just started learning about thread safety. This is making me code a lot
I just started learning Java and I'm confused about the topic of platform independence.
I just started learning about Kinect through some quick start videos and was trying
I've just started learning about extending the Configuration file structure by creating custom section
So I just recently started learning about how databases work, how to use SQL

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.