using $_SESSION[' ']; to transfer data problem....
Posted: Wed Nov 23, 2011 8:33 pm
thanks for helping here.
ok, i have my screen divided in 2 frames... one frame (called top) has one line. The other frame (called main) has all the rest of the screen. I want to make a little image in the top section to act like a zoom or a reducer of the main content. Like if i click on the little image, that would make the content of the main screen to show data without pictures.. if i click on the little image (in the top section again) that would do the opposite.... making the main screen to show the data with the picture.
So the little image is showing pictures or removing pictures.
So the main is showing differents things depending on what it find in a $_SESSION['variable'];
in my top frame, when i click the image, i change the value of the $_SESSION['variable']; and then i do a parent.frames[1].location.reload(); to reload the main.php
looks like when i reload the main, the main is like reading the $_SESSION['variable']; from the buffer or from the ram of the client computer.... and is not reading the new value from the top.php frame....
If i do click let say 4 or 5 times... it will eventually change and would work ok for one or two more time until it stop working like for 5 or 6 times again!!!
It really looks like it is not getting the value from the server but getting it from the cookie on the client side.
Or it is acting like, the server is not responding fast ennough, that the client side script is just reloading the page before the $_SESSION['variable'] has changed...
ok, i have my screen divided in 2 frames... one frame (called top) has one line. The other frame (called main) has all the rest of the screen. I want to make a little image in the top section to act like a zoom or a reducer of the main content. Like if i click on the little image, that would make the content of the main screen to show data without pictures.. if i click on the little image (in the top section again) that would do the opposite.... making the main screen to show the data with the picture.
So the little image is showing pictures or removing pictures.
So the main is showing differents things depending on what it find in a $_SESSION['variable'];
in my top frame, when i click the image, i change the value of the $_SESSION['variable']; and then i do a parent.frames[1].location.reload(); to reload the main.php
looks like when i reload the main, the main is like reading the $_SESSION['variable']; from the buffer or from the ram of the client computer.... and is not reading the new value from the top.php frame....
If i do click let say 4 or 5 times... it will eventually change and would work ok for one or two more time until it stop working like for 5 or 6 times again!!!
It really looks like it is not getting the value from the server but getting it from the cookie on the client side.
Or it is acting like, the server is not responding fast ennough, that the client side script is just reloading the page before the $_SESSION['variable'] has changed...