Off-Forum Check if User is Logged In? PLEASE HELP!!!
Posted by Warptweet
|
Off-Forum Check if User is Logged In? PLEASE HELP!!! February 18, 2007 01:01AM |
Registered: 18 years ago Posts: 1 |
I really need to know something...
My forums are in the /forums directory of my website.
When a visitor visits my index.php (the first page of my website), which is NOT inside the /forums directory, how can I make it check IF the user is logged into my forums?
I need a way to check the cookies or something.
IF the user is online{
echo "you are logged in (username of member)";
}
else
echo "You are not logged in!";
how can I do that? PLEASE, I really need this help!
Please give me a full, hopefully working code!
My forums are in the /forums directory of my website.
When a visitor visits my index.php (the first page of my website), which is NOT inside the /forums directory, how can I make it check IF the user is logged into my forums?
I need a way to check the cookies or something.
IF the user is online{
echo "you are logged in (username of member)";
}
else
echo "You are not logged in!";
how can I do that? PLEASE, I really need this help!
Please give me a full, hopefully working code!
|
Re: Off-Forum Check if User is Logged In? PLEASE HELP!!! February 18, 2007 05:28AM |
Registered: 21 years ago Posts: 683 |
|
February 18, 2007 06:56AM |
Admin Registered: 21 years ago Posts: 8,532 |
And make sure to set the cookie path setting in the general settings of Phorum to "/", so the cookie will be returned at that level by your browser. I think it's Phorum's default to use "/", so you're probably okay there.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Sorry, only registered users may post in this forum.