I want to re-direct users to the log in page if not logged in using the code
// User not logged in, redirect to login page
I keep getting the following:
Warning: Cannot modify header information - headers already sent by (output started at <page name>)
Also, if I uncomment the session line, I also get
Warning: session_start(): Cannot send session cookie - headers already sent by (output started at <page name>
How can I correct this? Thanks.