session updates

session.model.update_attribute(:user_id, session[:user_id])
  session.model.update_attribute(:requirement_title, params[:thread])

I found this on the net. Not sure how it works. Whenever a user clicks
on a certain link, I want to update the session's, that corresponds to
the user_id, :requirement_title.

What modifications would I have to make?


The above assumes you are using active_record_store and is for modifying metadata about the session, not the session data itself
Normally just session[:foo]=:bar will do the trick.