# CGI::Session::ActiveRecordStore and 2.3.2

**URL:** <https://www.ruby-forum.com/t/cgi-activerecordstore-and-2-3-2/176583>\
**Category:** Rails\
**Created:** [October 2, 2009, 6:01pm UTC](https://www.ruby-forum.com/t/cgi-activerecordstore-and-2-3-2/176583 "2009-10-02T18:01:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jbaty](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/3bc359/32.png) [@jbaty](https://www.ruby-forum.com/u/jbaty)\
**Post date:** [October 2, 2009, 6:01pm UTC](https://www.ruby-forum.com/t/cgi-activerecordstore-and-2-3-2/176583/1 "2009-10-02T18:01:13Z")

</div>

Hi all,

Before 2.3.2 I was able to do something like this to get a list of  
logged-in users:

@logged\_in\_users = CGI::Session::ActiveRecordStore::Session.find(:all,  
:conditions =\> [“updated\_at \>= ?”, 30.minutes.ago], :order =\>  
“created\_at ASC”)

Now from 2.3.2 onward that has since been deprecated. Does anyone know  
what replaces it?

---

<div class="post-metadata">

**Author:** ![jbaty](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/3bc359/32.png) [@jbaty](https://www.ruby-forum.com/u/jbaty)\
**Post date:** [October 2, 2009, 6:30pm UTC](https://www.ruby-forum.com/t/cgi-activerecordstore-and-2-3-2/176583/2 "2009-10-02T18:30:45Z")

</div>

On 02 Oct 2009, at 18:01, Jack B. wrote:

> Before 2.3.2 I was able to do something like this to get a list of  
> logged-in users:
> 
> @logged\_in\_users = CGI::Session::ActiveRecordStore::Session.find(:all,  
> :conditions =\> [“updated\_at \>= ?”, 30.minutes.ago], :order =\>  
> “created\_at ASC”)
> 
> Now from 2.3.2 onward that has since been deprecated. Does anyone know  
> what replaces it?

> **[Ruby on Rails 2.3 Release Notes — Ruby on Rails Guides](https://guides.rubyonrails.org/2_3_release_notes.html)**
>
> Ruby on Rails 2.3 Release NotesRails 2.3 delivers a variety of new and improved features, including pervasive Rack integration, refreshed support for Rails Engines, nested transactions for Active Record, dynamic and default scopes, unified rendering,...

CGI::Session::CookieStore has been replaced  
byActionController::Session::CookieStore.  
CGI::Session::MemCacheStore has been replaced  
byActionController::Session::MemCacheStore.  
CGI::Session::ActiveRecordStore has been replaced  
byActiveRecord::SessionStore.

Best regards

Peter De Berdt

---

<div class="post-metadata">

**Author:** ![jbaty](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/3bc359/32.png) [@jbaty](https://www.ruby-forum.com/u/jbaty)\
**Post date:** [October 2, 2009, 8:36pm UTC](https://www.ruby-forum.com/t/cgi-activerecordstore-and-2-3-2/176583/3 "2009-10-02T20:36:33Z")

</div>

Thanks Peter 🙂
