<div class="gmail_quote"><div>Hi Francois,</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I&#39;ve finally implemented a quite simple (and probably stupid) solution:<br>

<br>
Downloadable items have a specific url: &quot;/private-stuff/&lt;a specific token&gt;&quot;.<br>
<br>
When one of those URL is hit, the session looks if the item is available for the user and serve the file (or throw a 404).<br>
<br>
It seems weird to me that the file is served by the session... Do you see a cleaner solution ?</blockquote><div><br></div><div>Do you mean that Seaside server loads and serves the file? </div><div><br></div><div>You might like to look into X-Sendfile (though you&#39;ll need support from a front-end server Apache/Nginx/lighttp...)</div>
<div><br></div><div>I have no direct experience of using X-SendFile, but I believe others on the list have used it successfully and there is support in the latest versions of WAFileLibrary.</div><div>(<a href="http://code.google.com/p/seaside/issues/detail?id=637">http://code.google.com/p/seaside/issues/detail?id=637</a>)</div>
<div><br></div><div>Nick</div></div>