View previous topic :: View next topic |
Author |
Message |
Flux -
Joined: 13 Oct 2006 Posts: 48
|
Posted: Sat Mar 17, 2007 6:15 pm Post subject: phpBB forums - sessions? |
|
|
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 |
|
|
pkSML -
Joined: 29 May 2006 Posts: 952 Location: Michigan, USA
|
Posted: Sun Mar 18, 2007 6:45 pm Post subject: |
|
|
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 |
|
|
p3 -
Joined: 17 Jun 2005 Posts: 615
|
Posted: Sun Mar 18, 2007 7:08 pm Post subject: |
|
|
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 |
|
|
Flux -
Joined: 13 Oct 2006 Posts: 48
|
Posted: Sun Mar 18, 2007 7:57 pm Post subject: |
|
|
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 |
|
|
|