I think I have this right but I'm not sure so here goes....
I have a chk_login script in my site. When the user logs in, I'm trying to use cookies instead of sessions. I set up all my cookies and I did stop the login script and var_dump them to make sure they had the right values and they do...so all is well there.
Then I have the redirect set to the login_index.php page. At the top of this page is my chk_session script that looks like this...
<?
if(!isset($_COOKIE["userid"])){
header('location: http://mylink');
}
?>
The problem is, no matter if the cookies are set or not, I keep getting a redirect back to the login page. The login page also has a similar script but it does the opposite...if the cookie isset then it redirects to login_index.php. Since I don't just get stuck in a redirect loop, I'm guessing that I'm identifying my cookies wrong so could anyone please point me in the right direction here...
as always, Thanks in advance!!

New Topic/Question
Reply




MultiQuote







|