[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Configuration problems using Apache/PHP



On Thu, Jul 04, 2002 at 11:34:13AM -0500, Mannequin* wrote:
> Anyway, I'm trying to work with sessions, and the problem that keeps
> on coming up is that the variables that I declare in the session
> aren't passed on with the session. Here's a small example of what I
> mean:
> 
> <?PHP
> 	session_start();
> 	session_register("count");
> 
> 	$count++;
> 	print("You are visitor #$count.");
> ?>
> 
> Now every time you reload this, it's supposed to increment $count by
> one. But for some reason it doesn't. It just resets $count to 0 and
> adds one to it. (So $count always appears to be 1.)
> 
> I've been several other places for help on this and all I've managed
> to get is one person to help me with this. All that he was able to
> come up with is that it's a configuration problem. So if *anyone* can
> help me with this, or if you've had to deal with this before, could
> you please help me?

Please post the part of your php.ini (if you don't have access try phpinfo())
 regarding the session management, then I might be able to help you.

Greetings,

Vinai

Attachment: pgpH3ieIhLrKq.pgp
Description: PGP signature


Reply to: