Forum: Ruby on Rails Detect client session support

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Alfredo G. (Guest)
on 2009-04-28 17: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.