Page 1 of 1

http_session_vars undefined index in other page. y??????

Posted: Tue Mar 09, 2004 8:39 am
by chester
:?:

CHESTER

HELP!!!!!!!!!!

when i run the three pages- i used session_start and session_register but when i call it to the third page. the message is Undefined index of that variable i posted in session.....

anyone could help me???????

Posted: Tue Mar 09, 2004 8:55 am
by markl999
Does this test work?

Code: Select all

<?php 
session_start(); 
if(empty($_SESSION['count'])){ 
  $_SESSION['count'] = 1; 
} else { 
  ++$_SESSION['count']; 
} 
echo 'Count is : '.$_SESSION['count']; 
?>
It should increment the counter on each page reload. The outcome will help determine where your problem is.