# Re: Deprecating @session, but it's already set

**URL:** <https://www.ruby-forum.com/t/re-deprecating-session-but-its-already-set/87653>\
**Category:** Rails\
**Created:** [March 4, 2007, 11:19pm UTC](https://www.ruby-forum.com/t/re-deprecating-session-but-its-already-set/87653 "2007-03-04T23:19:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Phlip](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ed8c4c/32.png) [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Post date:** [March 4, 2007, 11:19pm UTC](https://www.ruby-forum.com/t/re-deprecating-session-but-its-already-set/87653/1 "2007-03-04T23:19:58Z")

</div>

Actually I had the test case containing the get :index inside a suite  
derived from Test::Rails::ViewTestCase; moving it to a normal functional  
suite fixed the problem.

The error message could have been clearer, though! 😉
