search for: online_sessions

Displaying 1 result from an estimated 1 matches for "online_sessions".

2008 Mar 07
0
ActiveRecordStore: cleanup & avoiding duplication
...ck_or_default(''/'') else render :action => ''new'' end end def destroy self.current_user.forget_me if logged_in? reset_session current_user.update_attribute(:online, false) redirect_back_or_default(''/'') end FINDING SESSIONS @online_sessions = CGI::Session::ActiveRecordStore::Session.find( :all, :conditions => [ "updated_at > ? and user_id is not null", Time.now() - 10.minutes ], :limit => 50 ) ------------ Everything loooks quite ok. I can login logout and I see how sessions come and go. After 10 minutes the sessi...