Configuration problems concerning sessions.

From: Date: Wed, 03 Jul 2002 23:38:45 +0000
Subject: Configuration problems concerning sessions.
Groups: php.general 
Request: Send a blank email to php-general+get-105329@lists.php.net to get a copy of this message
Hi all. I'm having problems using sessions. I've been able to narrow it down to a configuration problem, but I have no idea what to look for in php.ini or whatever. Anyway, let me explain a bit more. For some odd reason php on my local machine will not pass any variables when you either reload the page or when you try and pass the $PHPSESSID to another page. For example, I've used a test script that is supposed to work like a counter. <?PHP session_start(); session_register('count'); $count++; print("<P>You have been here $count times.</P>"); ?> Okay, so when you reload this script it's supposed to increase $count by one. But it doesn't. No matter how many times I reload it stays at 1. I'm using GNU Debian Linux Unstable (PPC platform) with Apache 1.3.26-1, PHP 4.2.1. I don't know how much this has to do with this, but I do have track-vars enabled. Thanks for any light you can shed on this. -Mannequin.

« previous php.general (#105329) next »