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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T21:07:59+00:00 2026-05-29T21:07:59+00:00

So I am having problems saving collections unique across tabs/browser (tabs really). Using static

  • 0

So I am having problems saving collections unique across tabs/browser (tabs really).
Using static variables to store data after the callback in ASP didn’t work so well because all browsers could read from it and modify the variables.
Using session variables didn’t work so well because while it successfully made the collection unique across browsers – it wasn’t unique across tabs. So one Mozilla tab could modify a the collection in a session variable (the collection changes) – the user will get a nasty surprise when using another Mozilla tab when accessing the collection again – unfortunately the SAME collection – something like a dirty read.
So the problem is – how can I make collections across tabs/browsers stateful but uniquely stateful so that each can have their own unique collection and can modify it freely.

The problem as I see it here is one tab continually makes an ajax request which always recreates the controller object which means it will never be unique.

Another idea was to save a reference to this collection in javascript – and then pass this reference back and forth during each request – The problem is how can I do it without serializing/deserializing which kind of defeats the point of just saving the reference 🙁

Any ideas are welcome.

Methods that didn’t work: Session, Application/Static (haven’t tried Application but it seems to behave the same way).
Will ViewState work? It doesn’t seem to save data however :'(

  • 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-29T21:08:00+00:00Added an answer on May 29, 2026 at 9:08 pm

    Replace the default route with a custom route which adds a GUID to the uri. And use that GUID to load the session.

    I’ve made an example in my blog just for you: http://blog.gauffin.org/2012/02/get-a-unique-session-in-each-browser-tab/

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

Sidebar

Related Questions

I am having problems while saving a pre-persisted JDO object in google-app-engine data store.
I'm having problems in a usecontrol referencing a other usercontrol: using System; using System.Collections;
Im having problems building a query with the linq to sql data query expression
I'm having problems using textures that are larger than the OpenGL window or the
I'm having problems creating a collection of delegate using reflection and generics. I'm trying
I having problems saving many to many relationships to a pivot table. The way
I am using the 2010 version of Visual Studio, but am having many problems
I'm having problems using JQuery inside an ASP.Net User Control I've created a sample
I'm having a strange problem saving data with cakePHP. I'll explain as I go.
I'm having problems with my app saving the access_token. The problem is, when an

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.