This is a bug that was introduced a few months ago and fixed last week. It'll be fixed in M5 and the fix is available on SNAPSHOT.
On Tue, Sep 8, 2009 at 9:04 PM, dave <dinosau...@gmail.com> wrote: > > Hi, > > I am new to lift so I hope this is not an ignorant question/problem. > I am having a problem where my json handler stops working. I believe > it is timing out independent of the session. > If I have my browser open for a short while, the json functions stop > working but the ajax functions keep working. I have tried to track the > time and find more details but I have not found the exact timeout. I > believe it might be the 10 minute default timeout. It appears that the > json functions continue to work if they are periodically called. > Refreshing the page does not help. The json functions work again if I > delete the cookie (and thus, get a new session). > > This problem also occurs at http://demo.liftweb.net/json_more (This is > the example I started with.) > In the demo app the server interaction on the json_more page stops > working but the server interaction from "AJAX Samples" still works. > > I have tried changing LiftRules.enableLiftGC but this did not fix the > problem. > I have also tried the JsonHandler both as and not as a SessionVar. > I have looked at S.functionLifespan but I am not sure how a app can > use this. It seems to mostly be used internally when manipulating the > function list. > > Is there a way I prevent my json handler from being garbage collected > or a way to "touch" it periodically so that it does not expire? > > I am using liftweb-1.1m4 and jetty 6.1.20. > > In the time I wrote this, I was able to reproduce the problem on > demo.liftweb.net. > > Thanks, > Dave > > > > -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Git some: http://github.com/dpp --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---