title: Rails and Authlogic: Allow only one session per user?
body: <p>Is there a way to limit the number of sessions in Ruby on Rails application (I'm using Authlogic for authentication)?</p>
  
  <p>I would like to allow only 1 session per user account. When the same user is logging on another computer the previous session should be expired/invalidated.</p>
  
  <p>I was thinking about storing the session data in database and then deleting it when a new session instance is created but probably there is an easier way? (configuration option) </p>