# Detect client session support

**URL:** <https://www.ruby-forum.com/t/detect-client-session-support/166686>\
**Category:** Rails\
**Created:** [April 28, 2009, 3:17pm UTC](https://www.ruby-forum.com/t/detect-client-session-support/166686 "2009-04-28T15:17:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alfredogz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/dbc845/32.png) [@alfredogz](https://www.ruby-forum.com/u/alfredogz)\
**Post date:** [April 28, 2009, 3:17pm UTC](https://www.ruby-forum.com/t/detect-client-session-support/166686/1 "2009-04-28T15:17:49Z")

</div>

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
