I think Cake do actual write to session when send response to the
client. So if main action is not finished yet, its session changes are
not applied.

On Sep 14, 1:46 am, Marcelo Andrade <[email protected]> wrote:
> Hi there,
>
> I'd like to use ajax->remoteTimer to update a status
> message in the view.  The main action is a big loop
> in which I set the current index to a session key with
> $this->Session->write('MyController.currentval, $i).
>
> But when I try to read this session key inside the
> remoteTimer's related action, the value isn't set.
> I changed the Security.level to medium but doesn't works.
>
> What I'm doing wrong?  Any help is appreciated.
>
> Best regards.
>
> --
> MARCELO DE F. ANDRADE
> Belem, PA, Amazonia, Brazil
> Linux User #221105
>
> http://mfandrade.wordpress.com
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to