Can anyone see whats wrong with this?
Its meant to check if your logged in by checking if the session and the cookie are the same (my login method).
Whats wrong:
[code]<?php
include(“include/session.php”);
if($_SESSION[‘username’] = $_COOKIE[‘cookname’]); {
echo (’
');
} Else {
echo “Please Login!”;
}
?>
[/code]
All Reply s and help will be greatly appreciated.
Thanks,
Team Storm