Computer Science Canada Sessions |
Author: | JHanson90 [ Wed May 19, 2004 4:57 pm ] |
Post subject: | Sessions |
I'm using the following tutorial for sessions: http://www.phpfreaks.com/tutorials/41/0.php I tried it out. But I got this error at the very top of my site on my localhost testserver: ___________________________________________________ Warning: session_start(): open(/tmp\sess_247bb29b5e0a20f637ecd709348c7e4e, O_RDWR) failed: No such file or directory (2) in C:\Program Files\Apache Group\Apache2\htdocs\jwd\romanempiretest\index.php on line 6 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at C:\Program Files\Apache Group\Apache2\htdocs\jwd\romanempiretest\index.php:6) in C:\Program Files\Apache Group\Apache2\htdocs\jwd\romanempiretest\index.php on line 6 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at C:\Program Files\Apache Group\Apache2\htdocs\jwd\romanempiretest\index.php:6) in C:\Program Files\Apache Group\Apache2\htdocs\jwd\romanempiretest\index.php on line 6 Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\Apache Group\Apache2\htdocs\jwd\romanempiretest\index.php:6) in C:\Program Files\Apache Group\Apache2\htdocs\jwd\romanempiretest\index.php on line 7 I followed all the instructions in the tutorial. Is it the the tutorial that's wrong, or something that I'm doing? If it's something that I'm doing, I'll have to copy and paste some of my coding.... |
Author: | JHanson90 [ Sun May 23, 2004 4:34 pm ] | ||||||||
Post subject: | |||||||||
OK the user does login, and then the next page it says if your session username and password are correct, then display the members area, else then say WRONG please try again. In the members area, there is a link to file upload. You go to that link, and it says if the session username and password that the user inout two pages ago are TRUE, then allow them to use the file upload, else display Sorry please go back to the login page. This is giving me problems. Here is the code: INDEX.PHP ::
Login Pageset (included on the index page IF the URL says ?module=login) ::
Members Area Pageset (included in the index.php IF the URL says ?module=membersarea) ::
File Upload Pageset (included in the index.php IF the URL says ?module=fileupload) ::
And the result on localhost and on my Host Ultra webserver is ERRORS GALORE |