I was adviced, a while back, to be sure to use session variables instead of the url string. I'm attempting this now, in one page, for instance:
TEST.PHP
<?php
session_start();
if (!$_SESSION["reload"]) {
$reload="test";
echo "no reload";
$_SESSION["reload"]= $reload;
}
else {
echo " reload" ;
$tmp = $_SESSION["reload"];
echo $tmp;
}
?>
Basically, if it's the first time showing the site, I'd like to read: "No reload", and from then on: "Reload Test". I get a number of errors I don't understand..
Warning: session_start(): open(/tmp\sess_fc42323c9240fb9b372116136c61cc9f, O_RDWR) failed: No such file or directory (2) in c:\Inetpub\ on line 2
Warning: session_start(): Cannot send session cookie - headers already sent by (output started at c:\Inetpub\ in c:\Inetpub\ on line 2
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at c:\Inetpub\ in c:\Inetpub\ on line 2
no reload
Warning: Unknown(): open(/tmp\sess_fc42323c9240fb9b372116136c61cc9f, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0
--------------------------------------
It's not the monsters under your bed, it is the men next door.
That make you fear, make you cry. Make you cry for the Child.
All the wars are fought amongst those lonely men. Unharmed, unscarred.
TEST.PHP
<?php
session_start();
if (!$_SESSION["reload"]) {
$reload="test";
echo "no reload";
$_SESSION["reload"]= $reload;
}
else {
echo " reload" ;
$tmp = $_SESSION["reload"];
echo $tmp;
}
?>
Basically, if it's the first time showing the site, I'd like to read: "No reload", and from then on: "Reload Test". I get a number of errors I don't understand..
Warning: session_start(): open(/tmp\sess_fc42323c9240fb9b372116136c61cc9f, O_RDWR) failed: No such file or directory (2) in c:\Inetpub\ on line 2
Warning: session_start(): Cannot send session cookie - headers already sent by (output started at c:\Inetpub\ in c:\Inetpub\ on line 2
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at c:\Inetpub\ in c:\Inetpub\ on line 2
no reload
Warning: Unknown(): open(/tmp\sess_fc42323c9240fb9b372116136c61cc9f, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0
--------------------------------------
It's not the monsters under your bed, it is the men next door.
That make you fear, make you cry. Make you cry for the Child.
All the wars are fought amongst those lonely men. Unharmed, unscarred.