Server settings for sessions
Posted: Tue Nov 08, 2005 4:32 pm
OK, this is related to my last question, but it's not the same...
I have a server running locally on my machine, and when I run this script with cookies turned off, the num_visits variable does not incremint, and the SID is not appended to the URI automatically. When I run it on my host's server, it does incrment, and it does append the SID... what php.ini value would cause this behavior?
I have a server running locally on my machine, and when I run this script with cookies turned off, the num_visits variable does not incremint, and the SID is not appended to the URI automatically. When I run it on my host's server, it does incrment, and it does append the SID... what php.ini value would cause this behavior?
Code: Select all
<?php
session_start();
if(!isset($_SESSION['num_visits'])){
$_SESSION['num_visits'] = 0;
}
$_SESSION['num_visits']++;
print_r($_SESSION);
echo SID;
?>
<a href="session.php">Link</a>