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