I have come across a little bit of trouble while using the SMF API.
Even when I do
<?php
require_once("forums/SSI.php");
// ssi_* calls
?>
I am unable to get access to the SMF session data. I'm sure I'm doing
something stupid seeing that I'm not really knowledgeable at all when
it comes to PHP sessions, so here's what I did, so anyone can figure
out:
1. I installed CakePHP as it comes out of the box.
2. I installed SMF to the same database as CakePHP under webroot/
forums
3. I included the above require call in my default.thtml.
4. I set CAKE_SESSION_COOKIE to SMFCookie655 (which is what it is for
SMF) and changed management to database.
5. I changed CAKE_SESSION_TABLE to forums_sessions, which is where the
SMF session are kept.
6. I added the "expires" field to the forums_sessions table.
7. I made minor modifications to lib/sessions.php to make sure that
_read, _write, etc. worked correctly (SMF stores session id in a
session_id field, whereas Cake stores it in id)
When I view http://path/to/forums/ssi_examples.php, all the data is
populated correctly. However, when I call any function from within the
Cake layout, the data is blank.
It seems to me that in Cake's call to the SSI functions, it attempts
to populate data using the information from the Cake session.
Regardless of the way everything is set-up, it seems Cake creates it's
own cookie and SMF creates it's own cookie. Should it do this?
Any help will be appreciated. :D
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---