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

  • Home
  • SEARCH
  • 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 6011141
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T02:13:00+00:00 2026-05-23T02:13:00+00:00

I have been writing a web application that will only create one session per

  • 0

I have been writing a web application that will only create one session per user. This has worked well so far. However, I am running into a problem where if I have a user logout, Spring thinks that user is still logged on. I am invalidating the session with acegi upon logout, but it seems as if Spring does not recognize that:

    <security:logout invalidate-session="true"
                success-handler-ref="logout"
                logout-url="/logout.html" />

So, my question is: does there exist a separate spring session that I must invalidate, and if this is the case, how should I go about doing so?

Thanks in advance.
MirroredFate

  • 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-23T02:13:01+00:00Added an answer on May 23, 2026 at 2:13 am

    If you’re asking if Acegi and SpringMVC use the same session then the answer is yes, they do. You may want to manually invalidate the session in the controller that handles /logout.html.

    UPDATE

    As the OP mentioned the in the comment below, to invalidate the authentication object use:

    SecurityContextHolder.getContext().setAuthentication(null);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been writing DLL on C++, that will be use in C#. DLL
I've been writing a little application that will let people upload & download files
I have been writing web applications for quite sometime in PHP with MySQL. I
I've been writing PHP web applications for some time, and have come across very
I have been writing Python code for only a couple of weeks, so I'm
I have been writing some code that creates a generic blog. Its features are
I have been tasked with writing an ADP application using Access. The back-end data
I am writing a web application (in PHP) at the moment that holds sensitive
I have an application I am writing for Android that basically does a screen
I'm looking to create a small C# application that will either run as a

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.