Hello,

I wonder what would be the best strategy to save and load the session
of a user, better say it's WTApplication state, mainly widget tree.
This would be very useful in two different scenarios:

1. The user might be able to continue his work in a later session
(having the same state of widget as much as possible, for example if a
lazily loaded item is loaded, the that should be loaded etc.), after
logged out and relogged in.

2. If one would deploy WT applications on shared hosting (what I
probably do soon), there are some stupid robots that kill your
applications depending on memory usage, time, etc. hell knows what
algo. Once the WT app (fcgi) is killed, whatever the user would do, he
will be redirected to the homepage. This effect of course does not
happen when used with non-ajax or stateless sessions.

As mentioned the idea would be to store mainly the widget tree with
minimal overhead. When the application or session is restarted for
whatsoever reason, based on some cookie, WT should be able to
reconstruct the tree based on the stored information. Of course it
would make less sense to store data, but just the tree and ID's to
data, data could be and should be recovered from the database (it
makes sense as inbetween data in the database could change).

I would put this in the suggestions list.

-- 
rgrds,
mobi phil

being mobile, but including technology
http://mobiphil.com

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to