Curious.
When I try this, I get redirected back to my custom login page.
So I add:
PHP Code:
if ($bbuserinfo['userid']!=0) {
header("Location: forum/index.php");
exit;
}
Works ok ...but.
But now for some reason the userid cookie is not set. Other cookies are: hash, lastvisit etc. But not the userid.
So the login is good so long as I remain within the forum system. But if I move into my custom site (or the photopost subsystem), the username reverts to "Guest". Because the code is not picking up the userid cookie.
I can code to lookup the sessionhash instead, but now I think I am travelling too far in the wrong direction.
Vewy stwange. Any guidance much appreciated.