Re: Session Not Being Passed?
| From: | Mark Sargent | Date: | Fri, 19 May 2006 04:05:51 +0000 |
| Subject: | Re: Session Not Being Passed? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-236473@lists.php.net to get a copy of this message | ||
Jay Blanchard wrote:
[snip]
which points to this page,
<?php
session_start;
//Check the user has logged in with a valid password
if ($_SESSION['authuser']!=1) {
echo "Sorry, you're not authorized to access this page";
exit();
}
?>
[/snip]
You forgot the parentheses after session_start(); (Assuming that you cut
and pasted)
Hi All,
ouch! Can't believe I missed that. Thanx. Cheers.
Mark Sargent.