Disable sessions for search engine bots?

I would like to disable sessions for search engine bots that browse my
site.
Is it possible to set session :off in application.rb based on the result
of a method call that would check the request.user_agent for common
search bots?