[Seaside] Accessing current session in RestfulFilter

Sven Van Caekenberghe sven at stfx.eu
Wed May 28 07:11:34 UTC 2014


On 28 May 2014, at 08:39, jtuchel at objektfabrik.de wrote:

> Sven,
> 
> is it possible you mixed in a "not" too much into your post? (sorry, but  I am not a native english speaker, so I may as well be wrong)

I don't think so, but English is not my native language either.

> I think you wanted to say that "pure" RESTful interfaces should not need a session or any other kind of state that survives a single request cycle. Some implementations or guidelines suggest putting state information into the request data so that subsequent requests from the same client can be identified.

Yes, that is what I meant.

> BUT this is not a requirement and there is no standard that forbids using sessions. You can chose to have server side sessions and this may make perfect sense for some areas where you need to make tradeoffs between performance/traffic and the share nothing principle.

It would no longer be (pure) REST to me. Think about how your REST clients would have to handle this state, it would make them much more complex.

> Joachim
> 
> Am 28.05.14 07:28, schrieb Sven Van Caekenberghe:
>> I am sure you know this, but is it not a goal of a REST interface to be stateless, to not have or need a session ?
>> 
>> On 28 May 2014, at 02:08, Esteban A. Maringolo <emaringolo at gmail.com> wrote:
>> 
>>> The RESTful filter is part of the Component as a decorator of it, but
>>> if I try to access the current session dynamic variable it is not
>>> available.
>>> 
>>> How do I do to retrieve the current session in the filter?
>>> 
>>> Is it possible?
>>> 
>>> Regards!
>>> 
>>> Esteban A. Maringolo
>>> _______________________________________________
>>> seaside mailing list
>>> seaside at lists.squeakfoundation.org
>>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>> _______________________________________________
>> seaside mailing list
>> seaside at lists.squeakfoundation.org
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>> 
> 
> 
> -- 
> -----------------------------------------------------------------------
> Objektfabrik Joachim Tuchel          mailto:jtuchel at objektfabrik.de
> Fliederweg 1                         http://www.objektfabrik.de
> D-71640 Ludwigsburg                  http://joachimtuchel.wordpress.com
> Telefon: +49 7141 56 10 86 0         Fax: +49 7141 56 10 86 1
> 
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside



More information about the seaside mailing list