Re: [PHP] Another Session Question

2003-12-31 Thread Matt Matijevich
[snip] session_start(); if($_SESSION['counter_file'] !==$counterFile)//See if visitor has already been counted for this page {$num += 1; $_SESSION['counter_file'] = $counterFile; } echo $_SESSION['counterFile'] .

Re: [PHP] Another Session Question

2003-12-31 Thread Al
Your'e right, that's a typo. If I put a echo $_SESSION['counter_file'] . ' testx ' . $counterFile; Before and after the conditional, $_SESSION['counter_file'] is set after the conditional, as it should be. But, it is gone from the before echo when the function is recalled. The

Re: [PHP] Another Session Question

2003-06-09 Thread CPT John W. Holmes
So does your code work? Here's a tip: Try a simple example, like what's in the manual, and see which method works for you. If they both work, which one do you understand? Use that one... ---John Holmes... - Original Message - From: Pushpinder Singh Garcha [EMAIL PROTECTED] To: [EMAIL

RE: [PHP] Another Session Question..

2002-03-12 Thread Gonzalez, Zara E
-Original Message- From: Coggeshall, John [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 12, 2002 3:38 PM To: Gonzalez, Zara E Subject: RE: [PHP] Another Session Question.. If you are trying to register any variable... Say $foo... Session_register('foo'); It will automatically appear

RE: [PHP] Another Session Question..

2002-03-12 Thread Gonzalez, Zara E
-register.php) Zara -Original Message- From: Coggeshall, John [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 12, 2002 3:38 PM To: Gonzalez, Zara E Subject: RE: [PHP] Another Session Question.. If you are trying to register any variable... Say $foo... Session_register('foo

RE: [PHP] Another Session Question..

2002-03-12 Thread Jan Rademaker
On Tue, 12 Mar 2002, Gonzalez, Zara E wrote: On second look, perhaps it is working correctly. I wasn't incrementing my counter variable. Sorry to flood your mailboxes. Zara this should work as well; foreach($_REQUEST as $key = $val) { $_SESSION[$key] = $val; } -- Jan