I'm lazy and I'm just going to do this easy.
I have the user validate and login in, then the logged in page loads imgs that log the user into a subdomain.
so..
the log in page looks like:
You're in, so go for it.<br><a href='main.php'>Click here for main page</a><br>
<img src='loginsub.php?nickname=dog'>
this is loginsub.php:
<?php
function deleteTheseCookies()
{
setcookie("site_user_sub", $nick, time() -1);
}
function setTheseCookies($nick)
{
setcookie("site_user_sub", $nick, time() + 31536000, "/");
}
if($logout)
{
deleteTheseCookies();
}
else
{
setTheseCookies($nickname);
}
php?>
and I get a red X cause I don't send it image data.
but when I try to get it to send image data, it doesn't load the cookie. how would I do this?
tia