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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T13:56:24+00:00 2026-06-16T13:56:24+00:00

Well, let’s say I have a php-script, that has some select box, and I

  • 0

Well, let’s say I have a php-script, that has some select box, and I want to store the selected value in session array. Till now I assigned the value to my session array using the following construction:

$_SESSION[SCRIPT_NAME]['filter_data']

SCRIPT_NAME is a constant where I put script name, this is to make session variable unique per every php-script. Everything is fine till the moment when user opens the same script in two or more tabs to work simultaneously. In this case variables mixes and things go wrong…

May be you have any ideas how to make session variable absolutely unique per every script instance? Or any advice how to achieve functionality different way?

I now, I can pass my variables in URL, but I don’t like this option. I want to use session and I want every script of my web-application remember users’ choices during the whole user login session

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

    “…how to make session variable absolutely unique per every script instance?”

    Basically the answer is, “You can’t.” This is because all instances of the browser (windows and tabs) share the same cookie jar. So both instances return the same cookie and they are connected to the same session. It’s rarely a problem in “real life” but it drives developers nuts, as you have now seen 😉

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

Sidebar

Related Questions

Let's say I have an array I need to store string values as well
Well, let me explain this briefly: 1.I want to build a website that provides
Let's say I want to have a function which reads data from the SerialPort
Let's say I have a bunch of well-known values, like this (but const char
Let's say I got a Dictionary type object holding some important info. Well, my
Okay, well let's say I have a variable list of items. It can be
Let's say I have a well-known interface IWellKnownInterface , which is known to be
I have an iphone app, with a view (well multiple but let's say one
Well let's say i have a foreach loop which look likes below items =
Let's say I have this sentence. The dog took the kid's bone. Well using

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.