let say i create session in login page. here session is on id and username.
$_SESSION["id"] = $id; $_SESSION["username"] = $username_p;
now to see who loged in i can do this
$user_name_s = $_SESSION['username']; //has the name of who is loged in
now how do i do this with cookies? how can i get the name of user who is loged in here. (not using sessions)
setcookie("id", $id, time()+172800); setcookie("username", $username_p, time()+172800); //seconds - 2 days