Re: Sessions problem

From: Date: Tue, 10 Jun 2003 09:09:04 +0000
Subject: Re: Sessions problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-150865@lists.php.net to get a copy of this message
It's a bit large the concept "not working". The code seems OK but I can't tested or help you because I can't see what it should do. If I register the my_email by hand it will enter to the do_session_crap() ... if not I don't get anything. When you are registering the my_email and how do you get the datas ... I need more to help you . -- ------------------------------------------------- Cristian MARIN InterAKT Online (www.interakt.ro) +4021 411 2610 cristic@interakt.ro "Ryan A" <ryan@jumac.com> wrote in message news:000701c32d31$59cfbda0$1701400a@l2zcaxu7emppqh... 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 (#150865) next »