Re: [PHP] need help with sessions

2002-12-17 Thread Marek Kilimajer
You don't need to call session_start twice. And you are right, the problem is in that line: you want to show your login screen if both $_POST['uid'] and $_SESSION['uid'] are not set, therefor instead of OR use AND. Anders Thoresson wrote: Hi again, I'm still trying to understand sessions, an

Re: [PHP] Need Help With SESSIONS and ARRAYS

2002-11-05 Thread Kevin Stone
Oops.. sorry didn't realize I was responding to a redundent post. :) -Kevin - Original Message - From: "Kevin Stone" <[EMAIL PROTECTED]> To: "@ Darwin" <[EMAIL PROTECTED]>; "Php-General" <[EMAIL PROTECTED]> Sent: Tuesday, Novemb

Re: [PHP] Need Help With SESSIONS and ARRAYS

2002-11-05 Thread Kevin Stone
So far as I know the session_register() function accepts only one input. That could be your array if you wanted. It would be the same thing as doing this: $myarray = array('name' => '', 'price' => '', 'desc' => ''); $_SESSION['myarray'] = $myarray; Set and/or Access with: $_SESSION['myarray']['n