def finalize(request)
      if @_destroy
        request.destroy_session_cookie
      elsif _original_session_data != (new_session_data = self.to_cookie)
        request.set_session_cookie_value(new_session_data)
      end
    end
def finalize(request)
      if @_destroy
        request.destroy_session_cookie
      elsif _original_session_data != (new_session_data = self.to_cookie)
        request.set_session_cookie_value(new_session_data)
      end
    end
==== Parameters
 session_id<String>:: A unique identifier for this session.
 cookie<String>:: The raw cookie data.
 secret<String>:: A session secret.

 ==== Raises
 ArgumentError:: blank or insufficiently long secret.

 :api: private
 Teardown and/or persist the current session.

 If @_destroy is true, clear out the session completely, including
 removal of the session cookie itself.

 ==== Parameters
 request<Merb::Request>:: request object created from Rack environment.

 :api: private