[Seaside] Seaside Sessions in a Blog Server

sebastian sebastian at flowingconcept.com
Sat Oct 17 16:25:19 UTC 2009


I use a periodic js dummy callback to prevent expiration

sebastian

On 17/10/2009, at 13:09, Karsten <karsten at heeg.de> wrote:

> Hi,
>
> there's this constant example of building a blog server with  
> whatever web framework. If you try to build a real webserver in  
> Seaside you've got to handle sessions somewhat properly. If you view  
> a post and have a comment input field then the session will be  
> started when you open the post. After reading through a very  
> lengthly post the session is probably times out. After writing a  
> lengthly comment it's certainly timed out. If the user submits the  
> comment after the session is timed out, his comment is lost.
>
> The easiest way to handle this is to set the session timeout to  
> maybe a day or so. However, i'd rather use a short session time to  
> not have tons of sessions in the image. What would be the right way  
> to handle that kind of situations? I guess this could be done in  
> initialRequest:, but how do you figure out which callback-numbers  
> match which input field?
>
> Kind Regards
> Karsten
>
>
>
>
>
> -- 
> Karsten Kusche - Dipl. Inf. - karsten at heeg.de
> Georg Heeg eK - Köthen
> Handelsregister: Amtsgericht Dortmund A 12812
>
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


More information about the seaside mailing list