Re: problem with session start
| From: | Andras Balogh | Date: | Fri, 10 Aug 2001 08:30:57 +0000 |
| Subject: | Re: problem with session start | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-62131@lists.php.net to get a copy of this message | ||
Hi,
You are on windows so the session.save_path should be changed in php.ini to
"C:\temp" or "c:\php\temp" or any other temporary directory.
BW,
Andras.
----- Original Message -----
From: "Balaji Ankem" <balaji.ankem@wipro.com>
To: <php-general@lists.php.net>
Cc: "Yamin Prabudy" <phplist@pro.net.id>
Sent: Friday, August 10, 2001 11:10 AM
Subject: [PHP] problem with session start
Hi! friend,
i got the following error when i am goint to start a session.
This is the file. and i got the following errors.
Warning: open(/tmp\sess_4a3f421e3a28de6801941743c0632862, O_RDWR) failed: m
(2) in c:\www\login.php on line 2
Warning: open(/tmp\sess_4a3f421e3a28de6801941743c0632862, O_RDWR) failed: m
(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
login.php
<?php
session_start();
session_register(emp_id);
?>
<html>
<head>
<SCRIPT language="Javascript">
function check(){
if (document.login.emp_id.value=='')
{
alert('Please enter your employee number');
document.issue.emp_id.focus();
return false;
}
else if(document.login.emp_pass.value=='')
{
alert("Please enter the password");
document.issue.emp_pass.focus();
return false;
}
else
{
document.login.method = "POST";
document.login.action="http://10.145.2.23/authentication.php";
document.login.submit();
return true;
}
}
</script>
</head>
<body text="arial" background="imacbg1.gif"
ONLOAD="document.login.emp_id.focus()">
<font face="arial" >
<center> <h1> WELCOME TO IMAC TOOL </h1></center>
<center>
<img SRC="logo.gif" height=100 width=100></img>
<pre>
<form name="login" >
<b>Employee No:</b> <input type="text" size="10"
name="emp_id"
maxlength="10" value=""><br>
<b>Password :</b> <input type="password" size="10"
name="emp_pass"
maxlength="10" value=""><br>
<input type="button" Value="LOGIN"
OnClick="check();">
</form>
</pre>
</center>
</font>
</body></html>
----------------------------------------------------------------------------
----
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net