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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T04:27:18+00:00 2026-05-23T04:27:18+00:00

I need a way of being able to do the following: A web application

  • 0

I need a way of being able to do the following:

A web application has a variable called ‘setting’.

When a user first connects to the application, setting should have a value of ‘default’.

Setting can be changed in any page.

If a user middle-clicks to open a page in a new tab, that page’s setting should be a copy of the current page’s setting (a copy, not a reference to it).

If a user opens a new tab and types in the web app’s URL, then that page’s value of setting should be ‘default’.

If a user left clicks a link, then the new page should have the same value for setting as the referring page (the same value, not a copy).

Implementation:

I can obviously do this with a nasty url hack (…?setting=foo), but this gets nasty when there are many settings.

Is there any ‘per-tab’ storage available on browsers.

Theory:

The theoretical underpinning for this behaviour is the concept of a subsession. All subsessions belong to the session. Subsessions have a parent, if their tab was opened by a middle click. If their page loaded by typing a URL in an empty tab, then the subsession has no parent. Settings can be stored in subsessions, and is a setting is not present in a subsession, the parent’s value is used instead.

Has anyone got any ideas on how to do this nicely?

Are there any sites which already behave this way?

Thanks,

Chris.

  • 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-23T04:27:19+00:00Added an answer on May 23, 2026 at 4:27 am

    I have written a solution to this issue at:

    https://github.com/chrisdew/subsession

    It is obviously in early development and may contain bugs.

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

Sidebar

Related Questions

Basically what I need is being able to add new functionality to my application,
I need to work out the best way to read data that is being
I need some way to monitor a desktop application and restart it if it
I need my Windows Phone application to be able to upload audio files to
I need the flexibility of being able to change parameters passed around to different
I'm being stuck setting up my htaccess properly. Currently I have the following situation
I need to parse the data I receive the following way: [ { "IdEmpleado":1,
I need a way to change the specific value of a column of a
I need a way in my Chrome extension to know when the browser is
I need a way to take text from a EditText as soon as the

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.