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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T14:45:14+00:00 2026-05-12T14:45:14+00:00

Is there a way to do a Session.Abandon() when the user just kills the

  • 0

Is there a way to do a Session.Abandon() when the user just kills the session by X’ing out with the little red X box in the upper right corner? I am seeing situations where after an “X out”, the user comes back in and it seems like session variables are still present? I guess explorer keeps them intact? (I am unsure of 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-05-12T14:45:14+00:00Added an answer on May 12, 2026 at 2:45 pm

    You can try doing an AJAX type callback in the OnUnload event – however, as someone else mentioned you’d have to be aware of other tabs being open (not easy), and it still won’t guarantee you get that event.

    There’s a combination of things to do to get a similar type of effect.

    • Session Cookie should have a null/empty expiry time. This ensures the browser deletes the session from it’s end after the browser is closed.

    • The ASP Session can be set with a short SessionState timeout value. This means if there’s no client activity within that period, the Session will expire.

    The side effect of this is that if a user is just looking at the site, and not performing activity (regardless of whether the browser is still open) – the session can expire.

    This can be worked-around by having a Javascript timer periodically ping back to the server with an AJAX call or similar. The side effect of THIS is that it generates more site traffic.

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

Sidebar

Related Questions

is there a way to print out the devise user session in rails? something
Is there a way to extend the session of a user the moment they
Is there a way to use the same session on different user-agents. I have
Is there any way to load a specific user session by providing the correct
Is there a way to reset (clear) the session for a user, when he
Is there a way to find out on session being started. Like for instance
Is there a way to get all Cookie/Session Keys and Values from user browsers
Is there any way to detect session timeout without (user interaction)*, and redirect it
is there a way to create a new session if it has timed out
Is there a way to get session management or security programatically in Jersey, e.g.

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.