def show(request)
      # force load session because it can be lazy loaded
      request.env[@key].delete(:rack_session_access_force_load_session)

      # session hash object
      session_hash = request.env[@key].to_hash

      case File.extname(request.path)
      when ".raw"
        render do |xml|
          xml.h2 "Raw rack session data"
          xml.pre RackSessionAccess.encode(session_hash)
        end
      else
        render do |xml|
          xml.h2 "Rack session data"
          xml.ul do |ul|
            session_hash.each do |k,v|
              ul.li("#{k.inspect} : #{v.inspect}")
            end
          end
          xml.p do |p|
            p.a("Edit", :href => action_path(:edit))
          end
        end
      end
    end
def show(request)
      # force load session because it can be lazy loaded
      request.env[@key].delete(:rack_session_access_force_load_session)

      # session hash object
      session_hash = request.env[@key].to_hash

      case File.extname(request.path)
      when ".raw"
        render do |xml|
          xml.h2 "Raw rack session data"
          xml.pre RackSessionAccess.encode(session_hash)
        end
      else
        render do |xml|
          xml.h2 "Rack session data"
          xml.ul do |ul|
            session_hash.each do |k,v|
              ul.li("#{k.inspect} : #{v.inspect}")
            end
          end
          xml.p do |p|
            p.a("Edit", :href => action_path(:edit))
          end
        end
      end
    end
List session data