You might want to make a note to stop using md5() at some point in the future as it's not as hard to reverse as you might think But it does the job in most cases.
oh boy! NOW it works! I just get this one error, here is the output of that verification code you gave me to protect those pages.
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/demiur/public_html/demo/helpdesk/index2.php:10) in /home/demiur/public_html/demo/helpdesk/index2.php on line 20
Warning: Cannot modify header information - headers already sent by (output started at /home/demiur/public_html/demo/helpdesk/index2.php:10) in /home/demiur/public_html/demo/helpdesk/index2.php on line 24
The 'protect page' code has to go at the very top of the file .. the very first lines.
Are you sure you want to protect index2.php as that's where you redirect to if a user isn't logged in, that's gonna cause a redirect loop. You only put the protect code at the top of the actual files to protect.
Bookmarks