> On 19 Jun 2017, at 15:40, horrido <horrido.hobb...@gmail.com> wrote:
> 
> I've added an attribute to the session called #user...
> 
> req session attributeAt: #user ifAbsentPut: user
> 
> This is used to *determine if I'm logged in*. On logout, I would like to
> *remove* this attribute, but I can't figure out how to do it. Suggestion?

req session removeAttribute: #user

> Sven Van Caekenberghe-2 wrote
>> If you are talking about ZnServerSessions, the ones returned from
>> ZnRequest>>#session, then the answer is that they are eligible for
>> expiration and cleanup after 1 hour (see ZnServerSession>>#isValid).
>> Cleanup happens inZnSingleThreadedServer>>#periodTasks. Right now, the
>> expiration time is a fixed constant.
>> 
>>> On 19 Jun 2017, at 08:08, Stephane Ducasse &lt;
> 
>> stepharo.self@
> 
>> &gt; wrote:
>>> 
>>> Teapot is a layer on zinc so you may check the Zinc chapters (I do not
>>> know if this is there).
>>> 
>>> 
>>> On Mon, Jun 19, 2017 at 1:42 AM, horrido &lt;
> 
>> horrido.hobbies@
> 
>> &gt; wrote:
>>>> Does Teapot's (ZnRequest's?) session ever expire? What is the expiry
>>>> period?
>>>> 
>>>> I can't find where it's specified or configured.
>>>> 
>>>> 
>>>> 
>>>> 
>>>> --
>>>> View this message in context:
>>>> http://forum.world.st/Teapot-session-tp4951845.html
>>>> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>>>> 
>>> 
> 
> 
> 
> 
> 
> --
> View this message in context: 
> http://forum.world.st/Teapot-session-tp4951845p4951905.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.


Reply via email to