Re: problem with session start

From: Date: Fri, 10 Aug 2001 08:56:56 +0000
Subject: Re: problem with session start
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-62139@lists.php.net to get a copy of this message
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: php-general@lists.php.net 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" 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>

« previous php.general (#62139) next »