In applicaitons/admin/controllers/default.py there is a function:

def keepalive():
    return ''

use an editor (like wordpad) and change it into

def keepalive():
    print "function called"
    return ''

then open web2py, edit any file and wait 5 minutes. Look if anything
is printed in the console window.

Massimo


On Apr 16, 1:14 am, Jason Brower <encomp...@gmail.com> wrote:
> Sorry, I haven't a clue how to do that. :(  But would be happy to learn.
> BR
> Jason Brower
>
> On Wed, 2009-04-15 at 21:50 -0700, mdipierro wrote:
> > The editor is not supposed to expire the session because there is a
> > keepalive ajax request.
> > If it is disconnecting you than there is a bug. Can you add a print
> > statement to the admin/controller/keepalive and check what is going
> > on?
>
> > Massimo
>
> > On Apr 15, 10:08 pm, Jason Brower <encomp...@gmail.com> wrote:
> > > A minor issue I am sure, but when I am developing I leave all the
> > > windows open just the way a like and suspend and comeback at a later
> > > time.  Doing so makes my editor windows say the have a "communication
> > > error" because my session timed out.  I would like it to be able to let
> > > me log back in to my session without losing data that I have done.
> > > Related is when I edit a document I don't think it should be a green
> > > bar.  It should only be green when the data is saved.  After that we
> > > don't know if it has been edited or not.
> > > BR...
> > > Jason
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to