QWEST
07-24-2002, 11:54 PM
Hello, everyone I'm currently working on something that im programming, and i'm currently getting a session error.
Warning: Failed to write session data (files). Please verify that the current setting of session.save_path is correct in Unknown on line 0
I believe, it is a defect with php 4.2.2, does anyone have any remedys?
Ifs o MUCH THANKS :)
ntwaddel
07-25-2002, 12:06 AM
check your php ini
make sure its like
session.save_path = /tmp
or wherever you want :D
QWEST
07-25-2002, 12:39 AM
Hello, yes that is already setup correct, but still no pass go:(.
ntwaddel
07-25-2002, 01:06 AM
Originally posted by QWEST
Hello, yes that is already setup correct, but still no pass go:(.
are you on a vhost, if so, are there any wierd php settings on your vhost config? is php safe mde on?
I am using php 4.2.2 and it works fine :-P
QWEST
07-25-2002, 01:10 AM
some example code...
<?php
require ("/home/test/public_html/config/mysql.inc");
$result = mysql_query("select * from admin");
$row = mysql_fetch_array($result);
if(md5($pass) == $row["pass"])
{
session_start();
session_register('user','pass');
session_id($session);
srand((double)microtime()*1000000);
$session = substr(md5(rand(0,9999999)), 0, 32);
print "Welcome $user, to your administration area.";
}
else
{
print "<body bgcolor='#CCCCCC'><p> </p><p><br><br><br> </p><center><table border='1' cellspacing='0' bordercolor='#000000' height='2' width='243' style='border-collapse: collapse' cellpadding='0'><tr><td bgcolor='#808080' align='left' height='26' width='966'><table border='0' cellpadding='0' cellspacing='0' style='border-collapse: collapse' bordercolor='#111111' width='100%' id='AutoNumber2'><tr><td width='84%'><p align='center'><b><font face='Arial' size='1' color='#FFFFFF'>ADMINISTRATION LOGIN AREA</font></b></td><td width='116%'><p align='center'><a href='javascript:self.close()'><img src='images/windowsx.gif' width='16' height='14' alt='Close Window' border='0' /></a></td></tr></table></td></tr><tr><td bgcolor='#BBBBBB' align='left' height='25' width='889'><table border='0' cellpadding='0' cellspacing='0' style='border-collapse: collapse' bordercolor='#111111' width='100%' id='AutoNumber1'><form method='POST' action='?action=submit'><td width='31%'> </td><td width='169%'> </td></tr><tr><td width='31%'><b><font color='#FFFFFF' face='Arial' size='1'> USERNAME:</font></b></td><td width='169%'><input type='text' name='user' size='14'></td></tr><tr><td width='200%' colspan='2'><b><font color='#FFFFFF' face='Arial' size='1'> </font></b></td></tr><tr><td width='31%'><b><font color='#FFFFFF' face='Arial' size='1'> PASSWORD:</font></b></td><td width='169%'><input type='text' name='pass' size='14'></td></tr><tr><td width='200%' colspan='2'> </td></tr><tr><td width='200%' colspan='2'> </td></tr><tr><td width='200%' colspan='2'><p align='center'> <input type='submit' value='ENTER ->' name='submit'></td></tr><tr><td width='200%' colspan='2'> </td></tr></form></table></td></tr></table></center></body>";
}
?>
blacknight
07-25-2002, 07:03 AM
There are a number of differences between 4.2.2 and previous releases, so you might want to check the php configuration options. If you cannot access the php.ini you might be able to override some of the settings via .htaccess