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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T13:25:20+00:00 2026-06-12T13:25:20+00:00

I am using HTML5 localStorage to track my application session. Below is the my

  • 0

I am using HTML5 localStorage to track my application session. Below is the my code sample.

             if(typeof(Storage)!=="undefined")
             {
                if(sessionStorage.lastname=="Smith")
                {
                    alert( "your Session is still active");

                }
                else{
                sessionStorage.lastname="Smith";
                   alert( "Last name: " + sessionStorage.lastname);
                }
                }
              else
                {
                alert( "Sorry, your browser does not support web storage...");
                }

The above code works great. But when I close my IE browser from Task Manage > kill IE process, and open my application again in a new browser, then I see my old localStorage value still exist, it does not delete my localStorage of previous session.

How can I delete the localStorage, when user kills the browser from TaskManager?

  • 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-12T13:25:21+00:00Added an answer on June 12, 2026 at 1:25 pm

    When the browser is killed via the task manager, the javascript process is subsequently killed. When javascript is killed it does not fire an event that you can act on.

    http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/232931/is-it-possible-detect-browser-process-termination#

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

Sidebar

Related Questions

Possible Duplicate: HTML5 local storage sort I am storing data into a localstorage using
I trying to use Client Side Storage available in HTML5 (localStorage) for Iphone Application
I've been playing around with HTML5 local storage, using localStorage.getItem(something) and localStorage.setItem(something,somevalue) and it's
I am creating an app using the Bespin editor and HTML5's localStorage. It stores
I am looking into using browser sessionStorage for a web application, and was trying
Using jQuery and localStorage, I want to keep track of how many times a
I have developed a mobile application using jquerymobile,asp.net mvc3,HTML5. I have a scenario like
We have a POS app written in html5 and we are using the localStorage
How do I bind a function to the HTML5 localStorage change event using jQuery?
I am aware of the basics of using the HTML5 localStorage using the localStorage.getItem

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.