Did you ever find a solution to this? I think I am experiencing a
similar problem. I can write to a session variable, but I can only
read the valid value if I do so before the action completes. Once the
action completes and a new one is called, the session information is
gone. I am extremely new to cake and would love to know the solution.
Thanks!
On Apr 17, 3:03 pm, Ramiro Araujo <[EMAIL PROTECTED]> wrote:
> I still have not succeded in this... The strange thing is that im
> using the Auth component, and im pretty sure It uses sessions. What I
> dont know if it uses them with $_SESSION or with thesession
> component, but I would bet for the second.
>
> Quite strange.. I'll try in other cake instalations around and see.
>
> On Apr 15, 10:38 am, Ramiro Araujo <[EMAIL PROTECTED]> wrote:
>
> > Hi, thanks! here it is:
>
> > Configure::write('Session.save', 'php'); //also tried with 'cake'
> > Configure::write('Session.cookie', 'CAKEPHP');
> > Configure::write('Session.timeout', '120');
> > Configure::write('Session.start', true);
> > Configure::write('Session.checkAgent', true); //also tried with false
> > Configure::write('Security.level', 'low');
>
> > Right now im asigning with $_SESSION and reading withSession
> > Component :D hahahah
>
> > Thanks for the help!
>
> > On Apr 14, 3:58 pm, "b logica" <[EMAIL PROTECTED]> wrote:
>
> > > How is your core.php configured? Post what you have for all
> > > Configure::write('Session.*', '...') and whether they are uncommented
> > > or not.
>
> > > On Mon, Apr 14, 2008 at 1:35 PM,RamiroAraujo <[EMAIL PROTECTED]> wrote:
>
> > > > Hi. Im having a strange problem, and couldn't find any solution or
> > > > anyone with a similar problem... Its quite simple:
>
> > > > same controller, 2 methods:
>
> > > > function sessionWriteTest ($key, $value) {
> > > > $this->Session->write($key, $value);
> > > > }
> > > > function sessionReadTest ($key) {
> > > > debug($this->Session->read($key));
> > > > }
>
> > > > doesnt work...
>
> > > > modifying the method sessionWriteTest like this, works:
> > > > function sessionWriteTest ($key, $value) {
> > > > $_SESSION[$key] = $value;
> > > > }
>
> > > > Am I missing something really simple? My config is set quite default,
> > > > temp directories are chmod 777, and normalsessionhandling works!
>
> > > > Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---