phpBB forums - sessions?

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
Flux
-


Joined: 13 Oct 2006
Posts: 48

PostPosted: Sat Mar 17, 2007 6:15 pm    Post subject: phpBB forums - sessions? Reply with quote

I just installed a phpBB forum to my server, exactly like this one.

My question is, does anyone know how it handles sessions? I've looked at the login.php script and it's very confusing. I'll continue to look through the script until I figure it out, but help along the way from anyone who has already figured it out or can do so faster than I can is very helpful.
_________________
My signature is so lame.

I think phpBB forums hates my laptop '.';
Back to top View user's profile Send private message
pkSML
-


Joined: 29 May 2006
Posts: 952
Location: Michigan, USA

PostPosted: Sun Mar 18, 2007 6:45 pm    Post subject: Reply with quote

You can find which script is starting the session with WinGrep by searching all php files for session_start. You could also search for $_SESSION to see where session variables are called and set.

My guess is that session handling is performed by an outside php file that is an include in login.php.
_________________
Stephen
Need a LitlURL?


http://CodeBin.yi.org
Back to top View user's profile Send private message Visit poster's website
p3
-


Joined: 17 Jun 2005
Posts: 615

PostPosted: Sun Mar 18, 2007 7:08 pm    Post subject: Reply with quote

phpBB uses its own custom session system that isn't reliant on PHP's. Sessions are tracked in a cookie (your SID), and are also tracked in the database. If you disable cookies (and, on some pages for security reasons), your SID will get appended in the URL.
Back to top View user's profile Send private message Send e-mail
Flux
-


Joined: 13 Oct 2006
Posts: 48

PostPosted: Sun Mar 18, 2007 7:57 pm    Post subject: Reply with quote

to p3: I noticed the sid in the url, yes.
to pkSML: after further browsing through the scripts, I noticed what p3 said, and it uses, as far as I can see, absolutely no $_SESSION - related scripting at all. Which is bad. I like $_SESSION...

Now I just need to figure out how to annex my regular webpages to the phpBB membership system..which is the main reason for this thread, really. I can probably start attempting scripts involving cookies and SIDs but help is as always, appreciated.

Thanks to both of you for providing your input.
_________________
My signature is so lame.

I think phpBB forums hates my laptop '.';
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group