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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T15:15:56+00:00 2026-05-22T15:15:56+00:00

When I open two applications in different browsers or in the same browser, the

  • 0

When I open two applications in different browsers or in the same browser, the value which I added in one application is visible to the other application.

I have made a session helper but i am still in problem.

public class SessionHelper
{
    #region Strongly typed variable
    public static CreateAccountModel tmpmodel = null;
    public static string errMsg = string.Empty;
    public static List<PointOfSalesModel> CurrPosModelArr = null;
    public static List<PointOfSaleUsersModel> currAddedClerks = null;
    public static List<AuthorizedIPsModel> currAddedIPs = null;
    public static bool isPosDataLodedFirstTime = false;
    public static string isEditGridClickedVal = "No";
    public static int AccountId = -1;
    #endregion

    public SessionHelper Current
    {
        get
        {
            SessionHelper currentSession = HttpContext.Current.Session["_session"] as SessionHelper;
            if (currentSession == null)
            {
                currentSession = new SessionHelper();
                HttpContext.Current.Session["_session"] = currentSession;
            }
            return currentSession;
        }
    }
}
  • 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-22T15:15:56+00:00Added an answer on May 22, 2026 at 3:15 pm

    Static fields/properties are shared across all your requests made from browsers. So even though you save it to the session, but each SessionHelper will have same static fields referenced. Use instance fields instead.

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

Sidebar

Related Questions

I have a system that has three applications (one windows application and two web
I have two versions of a Java application which use different concurrency logic. I
I am developing and application which needs to open camera. I found two different
I'm working on Android application which have two different tabhost : Main and Child.
I almost always have a Scala REPL session or two open, which makes it
I have two C# applications, one is reading a file (File A) line by
I have two different WinForms applications, AppA & AppB. Both are running .NET 2.0.
see basically i have one multi-thread application in which i want to see the
If you have two browser windows open and you use each to navigate to
I am planning a protocol where two applications open a socket between them and

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.