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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T10:03:06+00:00 2026-05-20T10:03:06+00:00

I am trying to persist settings on a page through browser close/re-open. Currently the

  • 0

I am trying to persist settings on a page through browser close/re-open. Currently the page has no concept of a user logging in. Every time I close the browser, re-open the browser, and load the page a new SessionID is created. I would like to load the old SessionID. Is this possible? I’d assume so since that’s the entire point of saving it, but after Googling for a bit I didn’t see anything on this.

I tried setting the timeout to a year, but even with a high timeout it still creates a new SessionID.

Thanks!

  • 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-20T10:03:06+00:00Added an answer on May 20, 2026 at 10:03 am

    You could use persistent cookies. In ASP.NET when you emit a cookie you could set the Expires property to some date into the future. This will create a persistent cookie on the client browser and you will be able to fetch the value back even if the user closes/reopens the browser again.

    And because we live in 2011 and HTML5 is knocking on our doors (it has even entered inside some homes) it is worth looking into the HTML5 local storage.

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

Sidebar

Related Questions

I'm trying to persist user settings to a configuration file using ConfigurationManager. I want
I am trying to persist the UISwitch state in my settings view of my
I am trying to persist a workflow that has a EF POCO in it
I am getting below error whilst trying to persist an object that has a
Essentially I'm trying to set a cookie after a user logs in to persist
I'm using jqgrid on a page and I'm trying to persist column sorting between
I'm using JPA2 and Hibernate implementation. I'm trying to persist a User object, which
I'm currently trying to persist a canvas to a bitmap, and I've run into
Problem Context: I am trying to persist a file, uploaded by the user, to
I am trying to persist an user entity with a profile entity from 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.