Re: Session Not Being Passed?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux