Giriş Yapıldıktan sonra
login formunu gizleyip hoş geldin demem gerek yardımcı olur musunuz?
session_start();
include("inc/fonk.php");
if (isset($_SESSION["Oturum"]) && $_SESSION["Oturum"] == "6789") {
echo çalışıyor;
}
else if (isset($_COOKIE["cerez"])) {
$sorgu = $baglanti->prepare("select kullanici from kullanicilar");
$sorgu->execute();
while ($sonuc = $sorgu->fetch()) {
if ($_COOKIE["cerez"] == md5("aa" . $sonuc['kullanici'] . "bb")) {
$_SESSION["Oturum"] = "6789";
$_SESSION["kullanici"] = $sonuc['kullanici'];
}
}
}
if ($_POST) {
$txtkullanici = $_POST["txtkullanici"];
$txtParola = $_POST["txtParola"];
}
?>
