if ($sessionid != "")
{
/* Connecting, selecting database */
db_connect("web");
if ($link != FALSE)
{
// Session id may still be invalid, we have to check it in the database
/* Check that no one else has this session id */
$query = "SELECT USERNAME
FROM USERS
WHERE SESSIONID = '".$sessionid."'";
$result = pg_exec($link, $query);
$sessionidexists = pg_num_rows($result);
if ($sessionidexists == 0)
{
// No longer a valid session id
$sessionid = "";
}
pg_free_result($result);
db_close();
}
}
?>
By clicking on "Log in Now" you agree to Gixen.com terms of usage | Forgot your username or password?
Click here