# Plugin errors

**URL:** <https://www.ruby-forum.com/t/plugin-errors/197232>\
**Category:** Ruby\
**Created:** [May 21, 2010, 12:54pm UTC](https://www.ruby-forum.com/t/plugin-errors/197232 "2010-05-21T12:54:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mailtorajuit](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ed8c4c/32.png) [@mailtorajuit](https://www.ruby-forum.com/u/mailtorajuit)\
**Post date:** [May 21, 2010, 12:54pm UTC](https://www.ruby-forum.com/t/plugin-errors/197232/1 "2010-05-21T12:54:30Z")

</div>

HI,

in my applicaition i want to use automatic sesssion cleaning.  
i followed the website

[http://agilewebdevelopment.com/plugins/limited\_sessions](http://agilewebdevelopment.com/plugins/limited_sessions)

I have download this plugin, then configured session life time in  
environment.rb like

CGI::Session::ActiveRecordStore::Session.recent\_activity\_limit =  
2.hours. finally i have started my server while i am getting following  
error  
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active\_support/dependencies.rb:478:in  
`const\_missing’: uninitialized constant CGI::Session (NameError)

from  
/home/manivannan/july1/GenuineTravelsTesting/config/environment.rb:52  
from  
/usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/initializer.rb:47:in  
`run' from /home/manivannan/july1/GenuineTravelsTesting/config/environment.rb:17 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem\_original\_require’  
from /usr/local/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:27:in  
`require' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:496:in `require’  
from  
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active\_support/dependencies.rb:342:in  
`new_constants_in' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:496:in `require’

how to solve this
