# Deletion of sessions

**URL:** <https://www.ruby-forum.com/t/deletion-of-sessions/166555>\
**Category:** Rails\
**Created:** [April 27, 2009, 10:02am UTC](https://www.ruby-forum.com/t/deletion-of-sessions/166555 "2009-04-27T10:02:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![santoshturamari](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ee59a6/32.png) [@santoshturamari](https://www.ruby-forum.com/u/santoshturamari)\
**Post date:** [April 27, 2009, 10:02am UTC](https://www.ruby-forum.com/t/deletion-of-sessions/166555/1 "2009-04-27T10:02:02Z")

</div>

Hi all,

I am new to RoR, I want to delete sessions, and dont know how and where  
to use the following,

ActiveRecord::SessionStore.Session.delete\_all [‘updated\_at \< ?’,  
1.week.ago]  
or  
ActiveRecord::SessionStore.delete\_all [‘updated\_at \< ?’, 24.hours.ago]

In environment.rb, I have  
config.action\_controller.session\_store = :active\_record\_store

Please help me, its urgent
