Forum: Ruby on Rails Detect client session support

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Ae4b91b75b0d2ce20b0240b0fb91be1f?d=identicon&s=25 Alfredo Garcia lopez (fredini)
on 2009-04-28 15:17
Hi,I have a simple question.
What´s the best way to detect if the client has session support?.
I want to hide some functions of my web application to robots(seo stuff)
and I would need to check in my controllers if the client has session
support, if the client supports sessions I initialize some variables and
then use it in my views if not(most likely it´s a robot) this functions
are hidden.
Another option would be to use javascript in my views to show the "only
human functions" but I would prefer to keep it in the controller side.

Some suggestions?

Thanks - Alfredo Garcia - Spain
This topic is locked and can not be replied to.