Write to file, to DB, to cache engine - anywhere both processes can
access. If you choose file, do not forget to open-write-close it on
each step or you return to current situation with session.

On Sep 17, 2:17 am, Marcelo Andrade <mfandr...@gmail.com> wrote:
> > On Sep 14, 1:46 am, Marcelo Andrade <mfandr...@gmail.com> 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.
> On Mon, Sep 14, 2009 at 3:18 AM, Dr. Loboto <drlob...@gmail.com> wrote:
>
> > 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.
>
> I see.  But in that case, what's the alternative to get
> the information about the current iteration in the loop?
> Write to a plain file?
>
> Thanks.
>
> --
> 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 cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to