<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Actually, I was merely stating fact that the stash is cleared after every request.&nbsp; I also understand the concept of a user session, but what I'm looking for is a way of sharing data between users, each of whom is involved in a separate session, but concurrently.&nbsp; I'm not worried about clearing the data out, only sharing it so that we don't have to re-load it for each session.<br>&nbsp;&nbsp;&nbsp; /S<br><br>-
Stefan Amshey
parallax99@hotmail.com<br><br><br><br>&gt; Date: Wed, 25 Mar 2009 10:27:12 -0700<br>&gt; From: garth.webb@gmail.com<br>&gt; To: sanfrancisco-pm@pm.org<br>&gt; Subject: Re: [sf-perl] Catalyst question - sharing data between sessions<br>&gt; <br>&gt; So I'm not clear about a few things.  You say that you want to share<br>&gt; some context between sessions.  Is this between two different user<br>&gt; sessions, or reload the same session for one user with all its data<br>&gt; more than once?  You also say that you clear the stash after every<br>&gt; request.  Does this mean you want to clear all the data?  This<br>&gt; wouldn't make sense for reloading the same session for a single user,<br>&gt; and if its multiple users they would only be able to share data if the<br>&gt; requests were happening simultaneously.<br>&gt; <br>&gt; I *think* what you're asking for is the concept of persistent session<br>&gt; data that is available for a single user on every request they make.<br>&gt; This is pretty easy to setup on Catalyst:<br>&gt; <br>&gt;   http://search.cpan.org/dist/Catalyst-Plugin-Session/lib/Catalyst/Plugin/Session/Tutorial.pod<br>&gt; <br>&gt; If you want to share data between processes and don't want to incur<br>&gt; hits to your DB, maybe you want Memcached.<br>&gt; <br>&gt; Garth<br>&gt; <br>&gt; 2009/3/25 Stefan Amshey &lt;parallax99@hotmail.com&gt;:<br>&gt; &gt; Hi all-<br>&gt; &gt;<br>&gt; &gt; I realize that this may not be the best list to ask this question on since<br>&gt; &gt; it involves a specific Perl technology, but does anyone out there have some<br>&gt; &gt; experience writing web-apps in Catalyst that could give me a basic point in<br>&gt; &gt; the right direction regarding the following:<br>&gt; &gt;<br>&gt; &gt; I'm writing a web-app that needs to hold some large data structures, and<br>&gt; &gt; instead of incurring the cost of loading those structures for each user<br>&gt; &gt; session we'd like to store them in some context that is shared between<br>&gt; &gt; sessions and possibly locked/unlocked/synchronized to avoid collisions.&nbsp; The<br>&gt; &gt; stash is cleared after every request, and the session object is<br>&gt; &gt; user-specific.&nbsp; Is there some concept of a "global session", or can we tie<br>&gt; &gt; variables to the top-level Catalyst object, or something like that?&nbsp; Anyone<br>&gt; &gt; solved this problem before without resorting to writing files?<br>&gt; &gt;<br>&gt; &gt; Thanks!<br>&gt; &gt; &nbsp;&nbsp;&nbsp; /S<br>&gt; &gt;<br>&gt; &gt; - Stefan Amshey parallax99@hotmail.com<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; ________________________________<br>&gt; &gt; Express your personality in color! Preview and select themes for HotmailŪ.<br>&gt; &gt; See how.<br>&gt; &gt; _______________________________________________<br>&gt; &gt; SanFrancisco-pm mailing list<br>&gt; &gt; SanFrancisco-pm@pm.org<br>&gt; &gt; http://mail.pm.org/mailman/listinfo/sanfrancisco-pm<br>&gt; &gt;<br>&gt; &gt;<br>&gt; _______________________________________________<br>&gt; SanFrancisco-pm mailing list<br>&gt; SanFrancisco-pm@pm.org<br>&gt; http://mail.pm.org/mailman/listinfo/sanfrancisco-pm<br><br /><hr />Express your personality in color! Preview and select themes for HotmailŪ. <a href='http://www.windowslive-hotmail.com/LearnMore/personalize.aspx?ocid=TXT_MSGTX_WL_HM_express_032009#colortheme' target='_new'>See how.</a></body>
</html>