Fourth attempt.. it fails now in login, I check by printing
$_COOKIE['nordicnet_regi stration'] and there is no value there! Guys, what
on earth do I do about this????
Here is the code that sets the cookie:
if ($hasLoggedIn && ($row = mysql_fetch_row ($query))) {
setcookie('nord icnet_registrat ion', $row['nnet_user_regi strationnumber'],
0, '/');
@mysql_free_res ult($query);
mysql_close($db Conn) or die('Could not close db');
$html .= $font . '<font color=000099>Ta kk for logging inn. For forsatte
' .
"<a
href=http://$serverName/index.php?conte nt=membersites/Palogget%20S1.p hp " .
' target=_top>kli kk her</a></font></font>';
} else if (sizeof($_POST) > 0) {
$errorMsg .= $font . '<font color=cc0000><l i>Det finns en problem med
db</li></font></font><p>';
$hasLoggedIn = 0;
}
Because the PHP script is in a frame, instead of using header() I print out
some text with a link <a href=mylink.php target=_top> for the user to click
and to go to another page. By then the cookie should be registered, yet
it's not there!
I'm at a complete loss.
Phil
							
						
					$_COOKIE['nordicnet_regi stration'] and there is no value there! Guys, what
on earth do I do about this????
Here is the code that sets the cookie:
if ($hasLoggedIn && ($row = mysql_fetch_row ($query))) {
setcookie('nord icnet_registrat ion', $row['nnet_user_regi strationnumber'],
0, '/');
@mysql_free_res ult($query);
mysql_close($db Conn) or die('Could not close db');
$html .= $font . '<font color=000099>Ta kk for logging inn. For forsatte
' .
"<a
href=http://$serverName/index.php?conte nt=membersites/Palogget%20S1.p hp " .
' target=_top>kli kk her</a></font></font>';
} else if (sizeof($_POST) > 0) {
$errorMsg .= $font . '<font color=cc0000><l i>Det finns en problem med
db</li></font></font><p>';
$hasLoggedIn = 0;
}
Because the PHP script is in a frame, instead of using header() I print out
some text with a link <a href=mylink.php target=_top> for the user to click
and to go to another page. By then the cookie should be registered, yet
it's not there!
I'm at a complete loss.
Phil
 
	
Comment