How can you make a login cookie of the POST -data by PHP?
My code registration.php
global $login_cookie = $_POST['email'] . ',' . md5($_POST['password']);
// this does not work: Parse error: syntax error, unexpected '=', expecting ',' or ';'
setcookie("login_cookie", $login_cookie);
// this is empty because of the above
POST verilerinin iki adet boş değil nerede.
Ben index.php aşağıdaki test-komutları çalıştırın
echo $login_cookie;
print_r($_COOKIE);
Ben olsun nothing
.
Sorun $ login_cookie ilk bildiriminde olduğunu.