#! /usr/local/bin/ruby require 'cgi' require 'fcgi' start_time = Time::now memory_session = Hash::new{|h,k| h[k] = {}} FCGI::each_cgi do |cgi| this_time = Time::now # hack to get around ruby session bug session = memory_session[[cgi.cookies['_session_id']].compact.flatten.first] last_time = session['last_time'] session['last_time'] = this_time content = <<-html