def update(request)
      begin
        data = request.params['data']
        hash = RackSessionAccess.decode(data)
        hash.each { |k, v| request.env[@key][k] = v }
      rescue => e
        return render(400) do |xml|
          xml.h2("Bad data #{data.inspect}: #{e.message} ")
        end
      end

      redirect_to action_path(:show)
    end
def update(request)
      begin
        data = request.params['data']
        hash = RackSessionAccess.decode(data)
        hash.each { |k, v| request.env[@key][k] = v }
      rescue => e
        return render(400) do |xml|
          xml.h2("Bad data #{data.inspect}: #{e.message} ")
        end
      end

      redirect_to action_path(:show)
    end
Update session data