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,
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:
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, November 05, 2002 3:27 PM
Subject: Re: [PHP] Need Help With SESSIONS
3 matches
Mail list logo