<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>db/migrate/20090209122314_create_sessions.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -62,7 +62,7 @@ Rails::Initializer.run do |config|
   # Use the database for sessions instead of the cookie-based default,
   # which shouldn't be used to store highly confidential information
   # (create the session table with &quot;rake db:sessions:create&quot;)
-  # config.action_controller.session_store = :active_record_store
+  config.action_controller.session_store = :active_record_store
 
   # Use SQL instead of Active Record's schema dumper when creating the test database.
   # This is necessary if your schema can't be completely dumped by the schema dumper,</diff>
      <filename>config/environment.rb</filename>
    </modified>
    <modified>
      <diff>@@ -9,7 +9,7 @@
 #
 # It's strongly recommended to check this file into your version control system.
 
-ActiveRecord::Schema.define(:version =&gt; 20090205210702) do
+ActiveRecord::Schema.define(:version =&gt; 20090209122314) do
 
   create_table &quot;authors&quot;, :force =&gt; true do |t|
     t.string   &quot;name&quot;
@@ -75,4 +75,14 @@ ActiveRecord::Schema.define(:version =&gt; 20090205210702) do
 
   add_index &quot;platforms&quot;, [&quot;name&quot;], :name =&gt; &quot;index_platforms_on_name&quot;
 
+  create_table &quot;sessions&quot;, :force =&gt; true do |t|
+    t.string   &quot;session_id&quot;, :null =&gt; false
+    t.text     &quot;data&quot;
+    t.datetime &quot;created_at&quot;
+    t.datetime &quot;updated_at&quot;
+  end
+
+  add_index &quot;sessions&quot;, [&quot;session_id&quot;], :name =&gt; &quot;index_sessions_on_session_id&quot;
+  add_index &quot;sessions&quot;, [&quot;updated_at&quot;], :name =&gt; &quot;index_sessions_on_updated_at&quot;
+
 end</diff>
      <filename>db/schema.rb</filename>
    </modified>
    <modified>
      <diff>@@ -8,4 +8,9 @@ namespace :isitruby19 do
   task :load_platforms =&gt; :environment do
     Platform.load_defaults
   end 
+  
+  desc &quot;Clear expired sessions&quot;
+  task :clear_expired_sessions =&gt; :environment do
+    ActiveRecord::Base.connection.execute(&quot;delete from sessions where updated_at &lt; '#{6.hours.ago.to_s(:db)}';&quot;)
+  end 
 end
\ No newline at end of file</diff>
      <filename>lib/tasks/isitruby19.rake</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>8e0d2577cfd86bd9099dd30b0b0ce47ba4eb6338</id>
    </parent>
  </parents>
  <author>
    <name>Rahoul Baruah</name>
    <email>rahoul@brightbox.co.uk</email>
  </author>
  <url>http://github.com/brightbox/isitruby19/commit/00e38609a436d4870537a18016fa20279a4c5a99</url>
  <id>00e38609a436d4870537a18016fa20279a4c5a99</id>
  <committed-date>2009-02-09T04:29:15-08:00</committed-date>
  <authored-date>2009-02-09T04:29:15-08:00</authored-date>
  <message>switched to active record sessions for better security with comments and sessions</message>
  <tree>565cafb50c8076f2ceb26ec2d87f658d30f6373e</tree>
  <committer>
    <name>Rahoul Baruah</name>
    <email>rahoul@brightbox.co.uk</email>
  </committer>
</commit>
