You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by John <jo...@quivinco.com> on 2014/08/22 22:37:09 UTC

zone updates prolong session life

Hi,

The sessions in my app are supposed to expire after 10 minutes, but I think zone updates are keeping them alive.

Is there a way to stop this behaviour? Only user generated actions should prevent a session expiring.

regards,
John

---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com

Re: zone updates prolong session life

Posted by Kalle Korhonen <ka...@gmail.com>.
The way I deal with this issue is by configuring aggressively short
sessions (in the order of a few minutes) and using optional components that
make intelligent (i.e. can track user activity on the client) keep-alive
requests on pages/workflows that need longer sessions. That's also the
principle behind http://tynamo.org/tapestry-conversations+guide.

Kalle


On Sun, Aug 24, 2014 at 12:24 PM, Thiago H de Paula Figueiredo <
thiagohp@gmail.com> wrote:

> On Sat, 23 Aug 2014 09:07:38 -0300, John <jo...@quivinco.com> wrote:
>
>  I was hoping that maybe the jquery zonerefresh mixin could be made to
>> mark its request in such a way to tell the container not to update the
>> session time? I'm guessing the container part of this work would be outside
>> Tapestry though.
>>
>
> I believe this is done by the container, not Tapestry, so there's nothing
> Tapestry can do here.
>
> --
> Thiago H. de Paula Figueiredo
> Tapestry, Java and Hibernate consultant and developer
> http://machina.com.br
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

Re: zone updates prolong session life

Posted by Thiago H de Paula Figueiredo <th...@gmail.com>.
On Sat, 23 Aug 2014 09:07:38 -0300, John <jo...@quivinco.com> wrote:

> I was hoping that maybe the jquery zonerefresh mixin could be made to  
> mark its request in such a way to tell the container not to update the  
> session time? I'm guessing the container part of this work would be  
> outside Tapestry though.

I believe this is done by the container, not Tapestry, so there's nothing  
Tapestry can do here.

-- 
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: zone updates prolong session life

Posted by John <jo...@quivinco.com>.
I was hoping that maybe the jquery zonerefresh mixin could be made to mark its request in such a way to tell the container not to update the session time? I'm guessing the container part of this work would be outside Tapestry though.

John
  ----- Original Message ----- 
  From: Howard Lewis Ship 
  To: Tapestry users 
  Sent: Friday, August 22, 2014 11:30 PM
  Subject: Re: zone updates prolong session life


  This is not currently possible with Tapestry; in fact some people use just
  the opposite approach, using a Zone update to keep the session live.

  It is difficult to tell, on the server side, what the "intent" of a request
  is, and Tapestry has had no concept of "user generated action" as the
  intent. Any interaction from the client is treated the same, and it is not
  clear how these could be differentiated on the server in such a way as to
  not trigger an extension of session life.


  On Fri, Aug 22, 2014 at 1:37 PM, John <jo...@quivinco.com> wrote:

  > Hi,
  >
  > The sessions in my app are supposed to expire after 10 minutes, but I
  > think zone updates are keeping them alive.
  >
  > Is there a way to stop this behaviour? Only user generated actions should
  > prevent a session expiring.
  >
  > regards,
  > John
  >
  > ---
  > This email is free from viruses and malware because avast! Antivirus
  > protection is active.
  > http://www.avast.com
  >



  -- 
  Howard M. Lewis Ship

  Creator of Apache Tapestry

  The source for Tapestry training, mentoring and support. Contact me to
  learn how I can get you up and productive in Tapestry fast!

  (971) 678-5210
  http://howardlewisship.com
  @hlship


---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com

Re: zone updates prolong session life

Posted by Howard Lewis Ship <hl...@gmail.com>.
This is not currently possible with Tapestry; in fact some people use just
the opposite approach, using a Zone update to keep the session live.

It is difficult to tell, on the server side, what the "intent" of a request
is, and Tapestry has had no concept of "user generated action" as the
intent. Any interaction from the client is treated the same, and it is not
clear how these could be differentiated on the server in such a way as to
not trigger an extension of session life.


On Fri, Aug 22, 2014 at 1:37 PM, John <jo...@quivinco.com> wrote:

> Hi,
>
> The sessions in my app are supposed to expire after 10 minutes, but I
> think zone updates are keeping them alive.
>
> Is there a way to stop this behaviour? Only user generated actions should
> prevent a session expiring.
>
> regards,
> John
>
> ---
> This email is free from viruses and malware because avast! Antivirus
> protection is active.
> http://www.avast.com
>



-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com
@hlship