Skip to main content
April 27, 2007
Answered

using the login and authentication wizard through Dreamweaver 8

  • April 27, 2007
  • 2 replies
  • 799 views
can anybody tell me what these error messages are? I have that logon.php file in that directory. I am not sure what these messages mean?
when page loads I get these.......

Warning: open(/tmp\sess_df7e67aa92cb740cee4bce1b9ac58406, O_RDWR) failed: No such file or directory (2) in c:\phpdev5\www\user_logon.php on line 5

Warning: open(/tmp\sess_df7e67aa92cb740cee4bce1b9ac58406, O_RDWR) failed: No such file or directory (2) in Unknown on line 0

Warning: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0

when I hit submit I receive this message....

Warning: Cannot add header information - headers already sent by (output started at c:\phpdev5\www\user_logon.php:5) in c:\phpdev5\www\user_logon.php on line 40
This topic has been closed for replies.
Correct answer Newsgroup_User
cpltek wrote:
> can anybody tell me what these error messages are? I have that logon.php file
> in that directory. I am not sure what these messages mean?
>
> Warning: open(/tmp\sess_df7e67aa92cb740cee4bce1b9ac58406, O_RDWR) failed: No
> such file or directory (2) in c:\phpdev5\www\user_logon.php on line 5

They are PHP error messages telling you that you haven't configured PHP
correctly. You need to edit php.ini and change the value of
session.save_path from /tmp to C:\WINDOWS\Temp.

Save php.ini and restart your web server.

--
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/

2 replies

April 27, 2007
here is the code I am using..
<?php require_once('Connections/COnn2.php'); ?>
<?php
// *** Validate request to login to this site.
//////////when I delete this---if (!isset($_SESSION)) {
session_start();}-----it gets rid of the error messages but when I logon I go the registration page either and not the logon page,
/////////
$loginFormAction = $_SERVER['PHP_SELF'];
if (isset($_GET['accesscheck'])) {
$_SESSION['PrevUrl'] = $_GET['accesscheck'];
}

if (isset($_POST['firstname'])) {
$loginUsername=$_POST['firstname'];
$password=$_POST['lastname'];
$MM_fldUserAuthorization = "";
$MM_redirectLoginSuccess = "User_login.html";
$MM_redirectLoginFailed = "registration.html";
$MM_redirecttoReferrer = false;
mysql_select_db($database_COnn2, $COnn2);

$LoginRS__query=sprintf("SELECT id, f_name FROM auth_users WHERE id='%s' AND f_name='%s'",
get_magic_quotes_gpc() ? $loginUsername : addslashes($loginUsername), get_magic_quotes_gpc() ? $password : addslashes($password));

$LoginRS = mysql_query($LoginRS__query, $COnn2) or die(mysql_error());
$loginFoundUser = mysql_num_rows($LoginRS);
if ($loginFoundUser) {
$loginStrGroup = "";

//declare two session variables and assign them
$_SESSION['MM_Username'] = $loginUsername;
$_SESSION['MM_UserGroup'] = $loginStrGroup;

if (isset($_SESSION['PrevUrl']) && false) {
$MM_redirectLoginSuccess = $_SESSION['PrevUrl'];
}
header("Location: " . $MM_redirectLoginSuccess );
}
else {
header("Location: ". $MM_redirectLoginFailed );
}
}
?>


any suggestions??
Newsgroup_UserCorrect answer
Inspiring
April 27, 2007
cpltek wrote:
> can anybody tell me what these error messages are? I have that logon.php file
> in that directory. I am not sure what these messages mean?
>
> Warning: open(/tmp\sess_df7e67aa92cb740cee4bce1b9ac58406, O_RDWR) failed: No
> such file or directory (2) in c:\phpdev5\www\user_logon.php on line 5

They are PHP error messages telling you that you haven't configured PHP
correctly. You need to edit php.ini and change the value of
session.save_path from /tmp to C:\WINDOWS\Temp.

Save php.ini and restart your web server.

--
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/
April 27, 2007
thanks. I tried it that and it still didn't work.