Hmmmm..... I thought that might work, but no dice.
In a PHP file pulled into my CMS, I tried this:
//This is just to trick webroot/index.php so it doesn't output
anything
$old_url = isset($_GET['url']) ? $_GET['url'] : NULL;
$_GET['url'] = 'favicon.ico';
require_once 'test/cake/app/webroot/index.php';
$_GET['url'] = $old_url;
require_once 'test/cake/cake/libs/session.php';
chdir ('test/cake/app/controllers');
$cakeSession = new CakeSession();
var_dump($cakeSession);
$cakeSession->write('ee_member', 123);
echo "Session name - ".session_name();
But it still doesn't show up when accessed from Cake:
$this->Session->write('user', 'XYZ');
echo $this->Session->read('user'); //this works
echo "<br /><br />\n\n";
echo "ee_member: ".$this->Session->read('ee_member'); //ouputs
empty string for the session var
I see that in session.php, there are three calls to session_start(),
two in __regenerateId() and one in the constructor. I'll hack
around a bit more and see when those are getting called (if at all),
and if I can find a reasonable way to suppress them.
Thanks,
Philip
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---