On Friday 02 July 2004 13:29, Randy Lawrence wrote: > I'm guessing this is because each Apache process has its own Ruby > interpreter instance: > > The following code inside a mod_ruby script does not always increment > $total displayed in the browser (it actually increments $total > internally, but each time the page is refreshed, the next Apache process > is used in seemingly round-robin fashion): > > ----- > if defined?($total) > $total = $total + 1 > else > $total = 0 > end > puts "total = #{$total}" You could run your application as a stand-alone server and have your CGI call it, but that would be a little more involved than simply tracking the total through a file or database. Sean O'Dell