[Seaside] Re: Session expiration and data cleaning

Dave lasmiste at gmail.com
Tue Feb 25 16:37:51 UTC 2014


Hi Diego,

My case I don't need an exact time of session expiration, that's fine for my
goal, but if you try my code you'll realize if more sessions aren't created
MySession>>unregistered  is not called even if the session is expired, so
data won't clear ever

Dave 


DiegoLont wrote
> Hi,
> 
> Maybe I am stupid, but if you depend on your sessions to expire to release
> key resources, I think this always means you have a security hazard. One
> should not rely on what the user does or does not. So I think the question
> should be: why is it important to know the exact time the session expires?
> What data do you need to clear, that it cannot wait to be cleared?
> 
> Diego
> 
> On 25 Feb 2014, at 08:53, 

> jtuchel@

>  wrote:
> 
>> Hi,
>> 
>> it seems this is a common request, because it pops up from time to time.
>> Seems people are unhappy about the fact that the time sessions may exist
>> after their expiry is undefined. So what Karsten describes is probably a
>> feature request...
>> 
>> For our application we decided to design our session classes to not hold
>> on to critical resources for longer that they need them, so that their
>> lingering after expiry is not an issue. For peace of mind, it would be
>> nicer if sessions just got killed once they've expired.
>> 
>> Joachim
>> 
>> 
>> Am 25.02.14 08:45, schrieb Karsten Kusche:
>>> i thought that’s not 10 created sessions but 10 queries to the cache.
>>> You can also create a background timer and let it access the
>>> application’s cache and trigger a reap.
>>> 
>>> Kind Regards
>>> Karsten
>>> 
>>> 
>>> -- 
>>> Karsten Kusche - Dipl. Inf. - 

> karsten@

>>> Georg Heeg eK - Köthen 
>>> Handelsregister: Amtsgericht Dortmund A 12812
>>> 
>>> Am Dienstag, 25. Februar 2014 um 08:40 schrieb Dave:
>>> 
>>>> No hint?
>>>> 
>>>> Dave
>>>> 
>>>> 
>>>> 
>>>> --
>>>> View this message in context:
>>>> http://forum.world.st/Session-expiration-and-data-cleaning-tp4745919p4746106.html
>>>> Sent from the Seaside General mailing list archive at Nabble.com.
>>>> _______________________________________________
>>>> seaside mailing list
>>>> 

> seaside at .squeakfoundation

>>>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>>> 
> On 24 Feb 2014, at 11:39, Dave <

> lasmiste@

> > wrote:
> 
>> Hi,
>> I need to clear some data on session expiration. After several searches
>> and
>> attempts I discovered that sessions expired after #cacheTimeout but they
>> are
>> unregistered only after the creation of 10 more sessions, see here:
>> http://lists.squeakfoundation.org/pipermail/seaside/2010-June/023663.html
>> and
>> http://lists.squeakfoundation.org/pipermail/seaside/2010-June/023670.html
>> you can change it reducing the cacheReapInterval, for example if you want
>> to
>> unregister your session after 2 sessions are created, you can write:
>> myApplication cache reapingStrategy configuration at:#cacheReapInterval
>> put:
>> 2.
>> 
>> and you can test it creating a MySession:
>> MySession>>unregistered
>> super unregistered.
>> Time now inspect.
>> 
>> then associate it to your application:
>> myApplication preferenceAt: #sessionClass put: MySession.
>> 
>> and looking at the time of inspection, so far so good.
>> 
>> But...
>> 
>> I need to clean my data when the session expires (with or without a
>> timeout), not when the session expires *and* after 2 or more sessions are
>> created.
>> 
>> Have you any suggestion?
>> 
>> TIA
>> Dave
> 
> 
> _______________________________________________
> seaside mailing list

> seaside at .squeakfoundation

> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside





--
View this message in context: http://forum.world.st/Session-expiration-and-data-cleaning-tp4745919p4746300.html
Sent from the Seaside General mailing list archive at Nabble.com.


More information about the seaside mailing list