Here is my code, I dont receive any error, but Im unable to set cookie
Tried using of OB_START too.
Thanks in Advance.
<?php
include ("../includes/dbcon_.php");
$login_chk_sql = mysql_query("SELECT * FROM TCustomer WHERE UsrName = '$_POST[lusername]' AND LoginPwd = '$_POST[lpassword]'");
$login_row = mysql_fetch_array($login_chk_sql);
if ($login_row['IsLoginActivated'] == "N")
{
header( 'Location: ../activate_ac.php?aim='.$login_row["IDRK"].'&target='.$login_row["UsrName"] );
}
else
{
setcookie("LoggedUsrId",$login_row['IDRK'], time()+7200);
header( 'Location: ../home.php' );
}
?>