FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free 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.
Related topics
PhpBB Login Problem Please help me
Loading time?
Possible to change the timezone? (server 2)
Short term server crashes?
[C#] Safe place to store information
using PHP $_SERVER commands for phpbb login
Joomla!
phpBB sessions
could anyone give me a Good Auction script... ill pAY!
External PhpBB Login w/ Image Submit
Relate Joomla and PHPbb - plz help
PHP & MySQL auth system
Automating your Forum Signature with Perl
How to Make my Custom phpBB Login on Safe
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

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