I'm having trouble accessing the session helper from a cached view.
I've put the nocache tags around the content. When the view is loaded
from cache the session helper doesn't start the session. Looking
through the code it appears the session component is the only are that
starts the session. Am I missing something?
Code:
SessionHelper -
function __construct($base = null) {
if (!defined('AUTO_SESSION') || AUTO_SESSION === true) {
parent::__construct($base, false);
} else {
$this->__active = false;
}
}
SessionComponent -
function __construct($base = null) {
if (!defined('AUTO_SESSION') || AUTO_SESSION === true) {
parent::__construct($base);
} else {
$this->__active = false;
}
}
CakeSession -
function __construct($base = null, $start = true) {
if($start === true) {
....
session_start();
header ('P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP
IND DEM"');
$this->__checkValid();
}
The helper calls the CakeSession construct with start set to false.
If I'm reading this right then the session never starts and there is
no way to access session vars from a cached view.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---