well, but how should that help me with my problem?
I want the session to time out, not extend its lifetime.
On Jan 3, 11:38 am, Adam Royle <[EMAIL PROTECTED]> wrote:
> To "keepalive" a session, I often doing a "ping" ajax request every 5
> minutes, just for good measure. This keeps the session alive as long
> as the user is on that page. Easily done using something like this
> with prototype. Could even use to ajax helper to do something similar.
>
> <script type="text/javascript">
> // ping server every 5 minutes
> new Ajax.PeriodicalUpdater('', '/admin/users/ping', {method: 'get',
> frequency: 300} );
> </script>
>
> Adam
>
> On Jan 3, 8:06 pm, kgrimm <[EMAIL PROTECTED]> wrote:
>
> > Hello,
>
> > I'm having the following problem:
>
> > I want to redirect to the login page (root) when the session has timed
> > out. I'm checking this in AppController each time a controller is
> > called. The problem is, that the login page is being rendered into the
> > old layout. I'm calling exit() after the redirect action just like it
> > should be. This problem only occurs, if a controller is called via
> > AJAX. If I reload the whole page or click an ajax-free-link,
> > everything is working fine.
>
> > Ideas, anyone?
>
> > Thanks in advance,
> > Kirsten
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---