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