stateful snippet timeout

10 views
Skip to first unread message

Dennis Haupt

unread,
Jun 1, 2015, 9:14:30 AM6/1/15
to lif...@googlegroups.com
how does lift know when to gc a stateful snippet after the user has closed his browser window?

Peter Petersson

unread,
Jun 1, 2015, 1:01:35 PM6/1/15
to lif...@googlegroups.com
By default, on most java servers the session is set to expire after 30 minutes of inactivity, this is however configurable.

best regards Peter Petersson


On 06/01/2015 03:14 PM, Dennis Haupt wrote:
how does lift know when to gc a stateful snippet after the user has closed his browser window?
--
--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code

---
You received this message because you are subscribed to the Google Groups "Lift" group.
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Dennis Haupt

unread,
Jun 1, 2015, 1:14:30 PM6/1/15
to lif...@googlegroups.com
can i tell lift to close a specific snippet instance after n minutes, regardless of the session timeout? in my case, the page does not have to be stateful, but making it stateful is the simplest way to increase the performance (data caching) - so it doesn't matter if i randomly lose the data

Antonio Salazar Cardozo

unread,
Jun 1, 2015, 1:23:31 PM6/1/15
to lif...@googlegroups.com, d.ha...@gmail.com
After a page is gone, the snippet (all snippets associated with this page) is GCed based on


On Monday, June 1, 2015 at 1:14:30 PM UTC-4, HamsterofDeath wrote:
can i tell lift to close a specific snippet instance after n minutes, regardless of the session timeout? in my case, the page does not have to be stateful, but making it stateful is the simplest way to increase the performance (data caching) - so it doesn't matter if i randomly lose the data
2015-06-01 19:01 GMT+02:00 Peter Petersson <peterss...@gmail.com>:
By default, on most java servers the session is set to expire after 30 minutes of inactivity, this is however configurable.

best regards Peter Petersson

On 06/01/2015 03:14 PM, Dennis Haupt wrote:
how does lift know when to gc a stateful snippet after the user has closed his browser window?
--
--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code

---
You received this message because you are subscribed to the Google Groups "Lift" group.
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code

---
You received this message because you are subscribed to the Google Groups "Lift" group.
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages