Hey all, I'm sorta at my wits end here...
I've been trying to use some code I found from certain download areas to see how php/mysql authentication/sessions are done.
I've followed the EXACT directions on how to set up each system, but I oddly keep getting the same basic problem on each script:
When I try to log in, and it re-directs me to the next page (I'm assuming where it begins the session), the next page comes up blank as if there is some sort of error.
I installed Apache/php(4.2.3)/mysql server software on my computer to try this and I'm wondering if somewhere I may have botched the install somehow...
The scripts I used are at these two websites:
http://simpleauth.munk.nu/ (adds users to db w/ no problem, just nothing else)
http://www.webdatabasebook.com/ (Not too sure what's going on with this, uses existing db).
I notice that on the first one the login page does not redirect me to the next page and it uses this code:
header("Location: members.php?".session_name()."=".session_id());
I didn't see a problem with this, but it doesn't seem to work. The other script uses the same function and it doesn't work as well.
I'm really frustrated at this point. ANYTHING you could do would be very appreciated.
Thank you.