To share session between different apps all of them should use same
session store and same session name. CakePHP session is set in /app/
config/core.php. You must setup your aa.php and bb.php same way to use
one session in all three.
On Mar 30, 3:33 pm, Rimoe wrote:
> hi,
>
> everyone,
>
> I have
Ok what is aa.php and bb.php for?
On Apr 2, 10:07 am, scottmdahl wrote:
> Have you included the Session component at the top of your controller
> like: var $components = array('Session');
>
> Scott
>
> On Apr 1, 12:01 am, Rimoe wrote:
>
> > Thank you,
>
> > just use
>
> > $this->Session->write('
Have you included the Session component at the top of your controller
like: var $components = array('Session');
Scott
On Apr 1, 12:01 am, Rimoe wrote:
> Thank you,
>
> just use
>
> $this->Session->write('myVar', 'value'); //writes a session var named
> "myVar
> $this->Session->read('myVar'); //
Thank you,
just use
$this->Session->write('myVar', 'value'); //writes a session var named
"myVar
$this->Session->read('myVar'); // reads the session var value
can get the value,
set session in aa.php can’t get value though controller by the
$this->Session->read('myVar'); // reads the session var
Use the Session Component,
put this code in every controller that need to access to the session
component
var $components = array('Session')
if you are going to use Session in your whole app then it would be a
good idea to place that line in app_controller.
Then, to use your session component i
Why are you triggering the session in aa.php and bb.php? What are
those for anyway?
The session component does all the session starting and magic
automatically.
On Mar 30, 1:40 am, Jeremy Burns wrote:
> Have you tried using the session component and helper instead of accessing
> the session dir
Have you tried using the session component and helper instead of accessing the
session directly?
Jeremy Burns
jeremybu...@me.com
On 30 Mar 2010, at 09:33, Rimoe wrote:
> hi,
>
> everyone,
>
> I have set a session in aa.php
> (
> session_start();
> $_SESSION['aa'] = '12345';
> )
> I can read
hi,
everyone,
I have set a session in aa.php
(
session_start();
$_SESSION['aa'] = '12345';
)
I can read the value in bb.php
(
session_start();
echo $_SESSION['aa'] ;
)
but I can't read the value in any aaas_controller.php.
(
echo $this->Session->read('aa');
echo $_SESSION['aa'];
)
do anyone kn