Hiya,
Just upgraded to 4.2.3 and I am using the attatched PHP.ini file. I use
sessions on my website, and they dont seem to work now after the upgrade.
Just wondering which lines do I need to alter please? After I logon, they
loose the session after choosing another page. Every page runs the following
code to check the session passwords etc are valid..
Thanks,
Steve
XX
<?php
session_register("ssun");
session_register("sspw");
if(!isset($ssun)) $ssun="";
if(!isset($sspw)) $sspw="";
//Attempt to logon. Set the logon form variables to the session variables.
if(isset($sspass))
{
$sspw=$sspass;
}
if(isset($ssname))
{
$ssun=$ssname;
}
//Make sure no one breaks in, if in the param loggedin was set, unset it.
if(isset($loggedin))
{
unset($loggedin);
}
//Link and select the correct database
HIDDEN FOR MY SECURITY!!!!
//Check if the ssun and sspw are correct
$result = mysql_query("SELECT userid FROM users WHERE
userpassword=PASSWORD('$sspw') AND userid='$ssun'", $db_link);
$norows = mysql_num_rows($result);
if($norows==1)
{
$loggedin="yes";
}
else
{
$loggedin="no";
}
if(isset($logoff))
{
if($logoff=="true")
{
$loggedin="no";
$ssun="";
$sspw="";
}
}
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php