Warning: Cannot send session cache limiter - headers
already sent (output started at c:\www\authentication.php:2) in
c:\www\authentication.php on line 38
----- Original Message -----
Sent: Friday, August 10, 2001 2:26
PM
Subject: [PHP] Re: problem with session
start
OK i can see your problem.... you are using
windows..... then in the php.ini you must set where to put the session
file..... it's somewhere around with line like
this
session.save_path = /tmp change it to something
like session.save_path = c:\tmp of cause you must make the tmp directory
first
good luck
Yamin Prabudy ----- Original Message
----- From: Balaji Ankem To: [EMAIL PROTECTED]
Cc: Yamin Prabudy Sent: Friday, August 10, 2001 3:10
PM Subject: 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"
> <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" >
</form> </pre> </center>
</font>
</body></html>
|
-----------------------------------------------------------------------------------------------------------------------
Information transmitted by this E-MAIL is proprietary to Wipro Limited and
is intended for use only by the individual or entity to which it is
addressed, and may contain information that is privileged, confidential or
exempt from disclosure under applicable law. If you are not the intended
recipient or it appears that this mail has been forwarded to you without
proper authority, you are notified that any use or dissemination of this
information in any manner is strictly prohibited. In such cases, please
notify us immediately at mailto:[EMAIL PROTECTED] and delete this mail
from your records.
------------------------------------------------------------------------------------------------------------------------
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]