posted May 12, 2000 11:41 AM
win98/apache1.3.9/php4 rc1"Warning: Failed to write session data. Please check that the current setting of session.save_path is correct (/tmp) in Unknown on line 0"
Does anyone know how i can fix this? I have the following in my php.ini
session.save_handler = files ; handler used to store/retrieve data
session.save_path = /tmp ; argument passed to save_handler
; in the case of files, this is the
; path where data files are stored
session.use_cookies = 1 ; whether to use cookies
session.name = PHPSESSID
; name of the session
; is used as cookie name
etc...
i tried changing session.save_path to a local directory but that doesn't seem to work?
-----
also... http_authentication doesn't work on my local machine. It keeps on giving me a 500 error and says it can't be displayed with the following code:
if(!isset($PHP_AUTH_USER)) {
Header("WWW-Authenticate: Basic realm=\"test\"");
Header("HTTP/1.0 401 Unauthorized");
echo "cancel this!\n";
exit;
} else {
echo "Hello $PHP_AUTH_USER.<P>";
echo "You entered $PHP_AUTH_PW as your password.<P>";
}
Is there something i need to turn on in my .conf files?
any help would be greately appreciated =)
Cisk