First off let me say I’m a noob and I know this isn’t very secure but,
I have a very simple php login script…
$username = “admin”;
$password = “admin”;
if($_POST[‘username’] != $username || $_POST[‘password’] != $password)
{
echo “contact form”;
}
else
{
echo “html website”;
}
My issue is when the page refreshes or the user is sent to a different page (ie. to delete file or upload file) and php sends them back, they need to login again. How can I get around this. I’ve tried to learn sessions and cookies, but it doesn’t seem to work for me. Is there a way other than sessions and cookies? or am I just doing it wrong?
Thank you in advance for you help