or use autosave, with ajax, save as draft, like gmail do.

On Mar 20, 3:15 pm, "Andre" <[EMAIL PROTECTED]> wrote:
> On 20 Mar, 14:34, "bernardo" <[EMAIL PROTECTED]> wrote:
>
> > Try using this: ini_set("session.gc_maxlifetime","14400");
> > and set CAKE_SESSION_SECURITY to high.
>
> That ini_set thing should be placed in cake/libs/session.php, right?
>
> If it's so, I've done it, but the problem persists.
> Maybe I'm dumb and I don't understand, or maybe I did not explain the
> problem correctly (english isn't my mother language).
> Say I've logged in and I start to write a post for my blog, and it
> takes 25 minutes. If I've set my session to timeout after 20 minutes
> (high security level), as soon as I press the submit button, I get
> redirected to the login screen, because the add method of my posts
> controller has a call to the following function at the first line:
>
> function checkSession()
>     {
>         // If the session info hasn't been set...
>         if (!$this->Session->check('User'))
>         {
>             // Force the user to login
>             $this->redirect('/users/login');
>             exit();
>         }
>     }
>
> $this->Session->check('User') returns false, thus making me lose my
> post.
>
> Thanks for your help, by the way, much appreciated ;-)
> But I'm starting to think that I'll be forced to make my sessions last
> for more time than I actually need, to solve my problem.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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