السلام عليكم
اسف الكود هو مثل ما انت عامله ولاكن هناك مشكلة
وهذا الكود كاملا
هذا كود الخروج
كود:
SETCOOKIE("user_logged", false );
SETCOOKIE("user_id", "", time()-86400);
SETCOOKIE("username", "", time()-86400);
SETCOOKIE("member_type", "", time()-86400);
SETCOOKIE("member_status", "", time()-86400);
وهذا كود تسحيل الدخول ملاحظة هذه دالة داخل كلاس
كود:
function set_login_cookies($user_id, $name, $type, $status, $cookie_experation){
SETCOOKIE("user_id", $user_id, time()+$cookie_experation);
SETCOOKIE("user_logged", true, time()+$cookie_experation);
SETCOOKIE("username", $name, time()+$cookie_experation);
SETCOOKIE("member_type", $type, time()+$cookie_experation);
SETCOOKIE("member_status", $status, time()+$cookie_experation);
header("location: control/user_control.php");
}
ملاحظة قمت بتجربة المتغيرات الموجودة في الدالة والمتغيرات تأتي بسلام ومع قيمة
فما المشكلة؟؟؟ اهل ممكن ان تكون مشكلة في السيرفر؟؟؟