Forum: Ruby on Rails Deletion of sessions

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Santosh T. (Guest)
on 2009-04-27 12:02
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 < ?',
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
This topic is locked and can not be replied to.