here's what I have as my code and ti's not working at all....
there must be something easier 🙁
function getSession() {
global $mysql_access, $messages;
if($_COOKIE[session_name()] !== "") {
$cook_user = $_COOKIE['session_user'];
$cook_ps = $_COOKIE['session_val'];
if(!checkPass("users", $cook_user, $cook_ps)) {
$messages[] = "Your cookie's are broken please try again";
}
startSession($cook_user, $cook_ps);
} else {
destroySession();
}
now I doubt that this is a good way to do it, checkPass(); checks the username and password against the database material to see if it's correct and then let's the user login.
Now, the problem with all this is that alot of cookies are being set and that's causign big trouble.
I'd much rather not use a cookie at all if at all possible.
Please help me out. I had another thread about all this but got almost no responses, but I thought I had it figured out. But now i'm lost 🙁
thanks in advance.