Php cannot monitor session changes on a page. that is, if a while session is equal to the specified value, the result will be returned. However, it is not very depressing. & nbsp; is it true that when php creates a page, the session will be assigned a value, and the page must be refreshed when the session changes? yes, can the php page monitor the session changes?
That is, if I use a while session that is equal to the specified value, the result will be returned.
Is it true that when php creates a page, the session will be assigned a value. when the session changes, the page must be refreshed.
------ Solution --------------------
Yes. when the session value changes, you must refresh the page to view the new value.
But you can use AJAX to get a value from time to time, as shown in figure
JScript code
// Execute $ (document). ready (function () {function autoAlt () {// alert ("bb"); $. post ("ajax. php? Act = memo ", {act:" memo "}, function (redata) {if (redata! = "") {Alert (redata) ;}, "text")} setInterval (autoAlt, 1000 );})