Asked by duncanb7
at 2024-05-06 09:20:05
Point:500 Replies:12 POST_ID:828550USER_ID:11059
Topic:
PHP Scripting Language;JavaScript;Linux
I read most articles or blogs from google search to find out where is
the session or session variable in php to be saved, most blogs or forums said
the session/session variable is saved on the server. For example , following link
http://stackoverflow.com/questions/454635/where-are-session-variables-stored.
But I don't why it is saved on server ? So I go to do a simple php test
Make a test php file and name it as test.php with the following simple code
the session or session variable in php to be saved, most blogs or forums said
the session/session variable is saved on the server. For example , following link
http://stackoverflow.com/questions/454635/where-are-session-variables-stored.
But I don't why it is saved on server ? So I go to do a simple php test
Make a test php file and name it as test.php with the following simple code
and make second.php with the following simple code that just echo variable (not set)
And I run test.php on my IE browser such as http://www.,mysite.com/test.php
it set and echo those two session variables on my IE browser finally. So it is fine.
If the session variables is saved in my server, I should be able to read the variable on other computer and , so I run the second.php script on IE such as http://www.mysite.com/second.php on other computer . but it doesn't echo out those two variabels on IE on other computer. Why ? BE reminded, I have two different PC computer and two telephone lines
SO I get confused ! Please advise why second.php doesn't echo out /display the variable
on IE on other computer ?
OR the reason is running php script on window computer browser, the variable is
saved on the client browser, is it right ?
If on linux server running the php script at Linux shell , the variable, of course, must save on the server, is that people are talking about ?
Please help on my confusion about where the session variable is saved
Duncan