Posted by y_oda2002 on 10/22/85 11:40
Thanks for trying to help...
However I still can't figure out the problem....
I keep getting the same error...
Here is what I am doing...
I have some structured code... include files....
I am trying to create a user login where each page knows the user is
or isnt logged in....
However whenever I refrence the file with this code (always included
at the beginning of the file)...
session_start();
function loggedIn()
{
return isset($_SESSION['authorized']);
}
It throws that error....
Should I only use session_start() once when the user enters the main
page?
It seems that the first page to start the session is fine and
continues to be fine evening when going to it from a page with the
error....
Does anyone know of anything on the web about sessions that would be
able to help me?
Thanks again for your time..
It's greatly appreciated....
Nick
http://eye.cc php newsgroups
Navigation:
[Reply to this message]
|