What is the best way to keep this session alive? I am thinking an AJAX
call that is set to interval at every minute ?
-Thadeus
-Thadeus
> --
> You received this message because you are subscribed to the Google Groups "web2py-users" group.
> To post to this group, send email to web...@googlegroups.com.
> To unsubscribe from this group, send email to web2py+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/web2py?hl=en.
>
>
>
>
On Jan 6, 2:02 pm, Thadeus Burgess <thade...@thadeusb.com> wrote:
> (this) being using ajax calls or (this) being keeping the session alive?
>
> -Thadeus
>
I think the best solution is to just not walk off and leave a post
open in mid-edit :)
But I could employ a couple of other measures, like auto-saving the
post, or using ajax to keep the session alive. I think auto-saving
might be the best option, since it will save the post but the session
will time out, that way nobody could sit down at my computer while I
am logged in as admin to the site, but I don't lose what I was working
on.
-Thadeus
just in case, i guess what "remember me" does on most pages is to not
delete the session "at all"
-wes
On Wed, Jan 6, 2010 at 7:44 PM, Thadeus Burgess <thad...@thadeusb.com> wrote:
> I don't know... There are times where I have completely forgotten
> about the fact I was writing a post to begin with... so many hours
> went by before I got back to it. I would still have the problem if I
> left it longer than the session was set for... I would still have to
> copy everything over to an external editor just in case, while I log
> back in.
>
<snip>
## if no need for session
# session.forget()
Just don't use sessions.
On Thu, Jan 7, 2010 at 2:57 PM, Richard <rich...@gmail.com> wrote:
> is there a way to disable timeout and have sessions last forever? That
> would be useful for my intranet app where security is not an issue.
>
<snip>
On Jan 8, 9:00 am, Wes James <compte...@gmail.com> wrote:
> look in db.py
>
> ## if no need for session
> # session.forget()
>
> Just don't use sessions.
>
auth.settings.expiration = 3600
which you can make very very long.