Thanks for the suggestion, Faifas. Unfortunately it does not seem to
make a difference, although I was hopeful it would because it makes
sense. Even when I set the timeout to 60000 (after trying your
suggested 600) it still logs the user out. The images I'm loading in
my test are small. Around 10kb each, 3 images. Only 30kb.

The comments in Cake's core say: CakePHP session IDs are also
regenerated between requests if 'Security.level' is set to 'high'. So
I think this might be the cause of the issue. I wonder if there is
some way I can Configure::write in my controller to not regenerate the
session ID between requests.

Thanks,
Jon


On Mar 18, 12:46 pm, Aivaras <[email protected]> wrote:
> Daffy, you may also want to add this to your beforeFilter():
> Configure::write('Session.timeout', '600');
>
> It will make session to last longer, hopefully, enough to load images.
>
> Cheers,
> Faifas
>
> On Wed, Mar 18, 2009 at 18:12, Daffy <[email protected]> wrote:
>
> > Another update.
>
> > I tried inserting this code into my image_upload controller.
>
> > function beforeFilter() {
> >   Configure::write('Security.level', 'medium');
> > }
>
> > After inserting this code, the session still breaks, but all of the
> > images load correctly. So now it's half-working. Hopefully I'm onto
> > something ... I'm still learning how all of this works!
--~--~---------~--~----~------------~-------~--~----~
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