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 6327751
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T17:20:07+00:00 2026-05-24T17:20:07+00:00

Security is not an issue here. I need to display ‘You are logged in

  • 0

Security is not an issue here.

I need to display ‘You are logged in as username’ on the page, but don’t want to remove the view from the cache just for this so I’m hoping to be able to do it in javascript.

I don’t want to make anything critical with this process, just check if the cookie is still valid, and if it is, display the welcome message, overwise, display the login link.

The whole point is to not hit the database and spare the server, as we got 120000 users a day on this single machine, so I need:

  • the name of the django.contrib.auth cookie so I can read it;
  • the data I’m supposed to read from it to decide the user is still logged in
  • a way to extract the username from it

If I can’t find a way to do this, I will fall back to create an authentification backend that set an additional cookie at sign in and deleting it at when logging out.

  • 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-24T17:20:08+00:00Added an answer on May 24, 2026 at 5:20 pm

    The sessionid cookie exists and has an expiry date. You could check to see if that is still valid which would suggest they are logged it. You can’t get the username this way though, you’ll have to add a custom cookie.

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

Sidebar

Related Questions

I'm not a security expert by any means, but I favor creating REST-style web
Have another issue here. Our app starts out with a tab activity. But, before
Excuse me for not quite a programming question, but I need to burn a
Is there a good method of form security that does not involve CAPTCHA? CAPTCHA
For security reasons (I'm a developer) I do not have command line access to
With Symfony's Action Security if a user has not been identified he will be
Obviously there are security reasons to close a wireless network and it's not fun
I'm working on a security project in Javascript (something I honestly have not used),
I have been using Windows 7 for a while but have not had to
I need some advice on how to go about a particular issue I'm trying

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.