<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<font face="Georgia">Umm, my reply was to Jon Paynter's message
which was basically how to clean up during development. Whether
someone finds some applicability to post-development scenarios,
well, YMMV.<br>
<br>
Cheers,<br>
Bob<br>
<br>
<br>
</font>
<div class="moz-cite-prefix">On 2/26/14 12:48 PM, Philippe Marschall
wrote:<br>
</div>
<blockquote
cite="mid:CA+LFMPjCpV6cT-NWQTVQL2DxOyFjZiWvj1afPBwmsg+PMBVKLg@mail.gmail.com"
type="cite">
<pre wrap="">On Tue, Feb 25, 2014 at 7:19 PM, Bob Arning <a class="moz-txt-link-rfc2396E" href="mailto:arning315@comcast.net"><arning315@comcast.net></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">I wonder if this doesn't point the way...
expire
self
greaseDeprecatedApi: 'WASession>>#expire'
details: 'This method might be reimplemented again. In the meantime,
if you just want to remove the Session from the Application, use
WASession>>unregister (#unregistered will be called as a notification
instead of #expired). Otherwise you should consider adding a Request Filter
to the Session that implements whatever behaviour you want in order to block
access to the Session.'.
^ self unregister
as well as...
WACache allInstances do: [ :e | e reap].
</pre>
</blockquote>
<pre wrap="">
What problem exactly are you trying to solve? Do you have to do some
work when the session expires?
It is true that per default we only expire on every n-th session
creation. You can change this by swapping the reapingStrategy
WAAccessIntervalReapingStrategy. However keep in mind that:
- if somebody just creates sessions but never accesses them you may
still want to reap at some point
- reaping does not scale well, you have to walk over all the sessions
We are aware that the current situation is suboptimal and are working
on a replacement [1] but that may take a moment.
[1] <a class="moz-txt-link-freetext" href="http://lists.squeakfoundation.org/pipermail/seaside-dev/2014-February/005710.html">http://lists.squeakfoundation.org/pipermail/seaside-dev/2014-February/005710.html</a>
Cheers
Philippe
_______________________________________________
seaside mailing list
<a class="moz-txt-link-abbreviated" href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a>
<a class="moz-txt-link-freetext" href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a>
</pre>
</blockquote>
<br>
</body>
</html>