Sessions problem

From: Date: Sat, 07 Jun 2003 20:14:07 +0000
Subject: Sessions problem
Groups: php.general 
Request: Send a blank email to php-general+get-150602@lists.php.net to get a copy of this message
Hi, Heres the code (very simple stuff) but not working: if(session_is_registered('my_email')){} else{ do_session_crap(); } function do_session_crap() { if(isset($id[0])) {$p1=$id[0]; echo $p1; $_SESSION['p1'] = $p1; } if(isset($id[1])) {$p2=$id[1]; echo $p2; $_SESSION['p2'] = $p2; } if(isset($id[2])) {$p3=$id[2]; $_SESSION['p3'] = $p3; } if(isset($id[3])) {$p4=$id[3]; $_SESSION['p4'] = $p4; } if(isset($id[4])) {$p5=$id[4]; $_SESSION['p5'] = $p5; } else {echo "not working";} // header("Location: my.login.php"); exit; } it always gives me "not working" Any idea why? -Ryan

« previous php.general (#150602) next »