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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T19:01:36+00:00 2026-06-13T19:01:36+00:00

We have had a security test against our site, and a vulnerability has been

  • 0

We have had a security test against our site, and a vulnerability has been identified.

Issue

If the session identifier were known by an attacker who had access to
the user’s workstation, the logged out session could be accessed using
the session cookie after the user had terminated their session.

Recommendation

Ensure that session identifiers are correctly terminated on the server
side when the logout function is invoked.

Code

The code currently does this (if a user clicks the “logout button”)

        FormsAuthentication.SignOut();
        Roles.DeleteCookie();
        Session.Clear();

I’m not sure how to check “ensure that session identifiers are correctly terminated on the server side when the logout function is invoked.”

I’ve done some research and think I should I be doing this instead?

        Session.Abandon();

If not, what should I be doing? (I’m not entirely sure how to test this…)

  • 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-06-13T19:01:37+00:00Added an answer on June 13, 2026 at 7:01 pm

    In ASP.net Session.Abandon() is not sufficient for this task, it does not remove the session ID cookie from the user’s browser, so any new request to the same application, after the session is abandoned, will use the same session ID and a new Session State instance! As Microsoft states here. You need to abandon the session and clear session ID cookie:

    Session.Abandon();
    Response.Cookies.Add(new HttpCookie("ASP.NET_SessionId", ""));
    

    It’s also a good practice to change the Form Authentication cookie name, in your web.config file:

    <authentication mode="Forms">
      <forms name=".CookieName" loginUrl="LoginPage.aspx" />
    </authentication>
    

    Here’s a good article on Session Attacks and ASP.NET and how to resolve it.

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

Sidebar

Related Questions

I've been trying to get WCF security working for my project, and have had
I'm using spring MVC, and I have a custom authentication/security system that I had
I have had a talk with a friend of mine about the relative vulnerability
I'm working on application tests and have found an issue. My app. has an
I have had an online archive service for over a year now. Unfortunately, I
I have had to compile my app for the 4.0 sdk to run on
I have had a persistent problem with Visual Studio 2010 and any framework version
I have had this problem crop up a few times and I can't figure
I have had a look all over, but it doesn't seem as though my
I have had several situations when i would like to do that. This could

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.