FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

phpbb: Login-Session

 


TomS
Hi. Does anybody know, how i get the session of phpbb, if someone is logged in?

Code:

if (isset($_SESSION["LOGGEDIN"]) and $_SESSION["LOGGEDIN"]=="TRUE")
{
#Some Code...
}


LOGGEDIN and TRUE: I need the values for those two variables.

I want to check from another site, if the user is logged in.

Thx for every answer.
Fire Boar
I'm not sure but... isn't TRUE or true usually a boolean? If that's the case, then TRUE should == 1...

I'm not certain, though. No idea on the other bit.
TomS
Yes you're right.
True and False are boolean returns.

But here it is a string.
It could be replaced with "blubberdiblubb".

That's the question. What it is in the board.

At first i need to check, if the session exists. Therefor i need the value "LOGGEDIN". Then it must be found out, if the value is correct.
I need these two variables.

Someone said, that phpbb created their own code for sessions.
So i also need to find out the right way, to get the login-state.
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.