Ignore me ..I just got up :) Tom
At 01:09 PM 22/06/2002 +1000, Tom Rogers wrote: >At 01:09 PM 21/06/2002 -0500, Rick Kukiela wrote: >>Ok, I have never, in my entire life, have such a persistant little freakin >>problem with a programming language... It started out while i was running >>4.1.2 where sessions would not write to the disk properly. I researched and >>found a bug. I couldnt get php properly upgraded... dont know why so i had >>to whip out the whole system and start from scratch. After doing this I am >>now running Apache 1.3.26, php 4.2.1 and the os is Freebsd 4.6-Release, >>platform i386. >> >>I just want to do some simple authentication with sessions so this is the >>session code in the script: >> >> $start_time = mktime(); >> error_reporting(2047); >> session_start(); >> session_register("encrypted"); >> session_register("user"); >> session_register("start_time"); >> session_register("cdomain"); >> session_write_close(); >> header("Location: blalbalballafdskljf"); >> >>i even tried that same code but instead of using session_register i assigned >>the vars manually by doing like $_SESSION['encrypted'] = $encrypted; but >>that produced the same errors as using session_register. >> >>I tried with reg_globals on and off. no difference. >> >>Its set to write in the /tmp directory which has the following permissions. >> >>drwxrwxrwt 3 root wheel 512 Jun 21 13:00 tmp >> >>I also tried changing it to /usr/local/apache/sessions which has the >>permissions: >> >>drwxrwxrwx 3 nobody nobody 512 Jun 21 12:36 sessions >> >>Nothing works NOTHING AT ALL, i cant get this shit to work for the life of >>me and its really irritating. apache error_logs report NOTHING at all and if >>php has its own log i have no idea where it is..... >> >>Even if you cant directly tell me what the problem is, if there is a way to >>even find out what could be causeing it please let me know, this is killing >>me. >> >>Oh and here is the output i get when i run the script. >> >>-------- >>Warning: Failed to write session data (files). Please verify that the >>current setting of session.save_path is correct (/tmp) in >>/usr/local/apache/htdocs/cp/login.php on line 43 > > >This below is your problem, you must be outputting white space so it can't >set the session cookie. >Tom > >>Warning: Cannot add header information - headers already sent by (output >>started at /usr/local/apache/htdocs/cp/login.php:43) in >>/usr/local/apache/htdocs/cp/login.php on line 45 >> >>--------- >>Thanks >>Rick >> >> >>-- >>PHP General Mailing List (http://www.php.net/) >>To unsubscribe, visit: http://www.php.net/unsub.php > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php