Thank you Andre!<div><br></div><div>I also came to this during my investigations... Good that it is easy to make a process in erlang :-) ETS will also work.</div><div><br clear="all"><div>Best regards,</div><div>Max</div><br>

<br>
<br><br><div class="gmail_quote">On Fri, Feb 10, 2012 at 11:48 AM, André Graf <span dir="ltr"><<a href="mailto:andre@dergraf.org">andre@dergraf.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

As far as I understand in webmachine the state (they call it context) is only passed among the different webmachine resource functions e.g. you build up your state in the init/1 function, which you can later use in e.g. process_post. Once the request is handled the state is destroyed, as it makes sense for a stateless protocol such as http. If you really need shared state I would suggest to use a process holding your state or just take an ets table.<br>


<br>
<br>
Am 10.02.12 08:30, schrieb Max Bourinov:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
I would like to keep time of last call inside page module. I suspect<br>
that State which exists in the page module can help me with it - is it<br>
correct?<br>
<br>
How would you do it in easy way?<br>
<br>
The hard way I know is to spawn process that will keep my data.<br>
<br>
Best regards,<br>
Max<br>
<br>
<br>
<br>
<br></div></div>
______________________________<u></u>_________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/<u></u>listinfo/erlang-questions</a><br>
</blockquote>
<br>
______________________________<u></u>_________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/<u></u>listinfo/erlang-questions</a><br>
</blockquote></div><br></div>