Request.session_options[:id] accessiblity problem

I am having problem retrieving the value for variable
request.session_options[:id] from my controller. Though the same returns
a
proper value when accessed through a view. I am not able to understand
why
it is happening.