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
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
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
3 matches
Mail list logo